โ† Back to Documentation Index

FlexPBX Network Configuration

FlexPBX Network Configuration


Server: 64.20.46.178
Tailscale IP: 100.64.0.2
Date: October 14, 2025


๐Ÿ”Œ SIP & RTP Ports

SIP Signaling Ports









RTP Media Ports





PortProtocolPurposeBind Address
---------------------------------------
5060UDPSIP Signaling (Public)64.20.46.178
5060TCPSIP Signaling (Public)64.20.46.178
5060UDPSIP Signaling (Tailscale)100.64.0.2
5160UDPSIP Alternate Port 10.0.0.0
5260UDPSIP Alternate Port 20.0.0.0
5061TLSSIP Secure (disabled - no cert)0.0.0.0
Port RangeProtocolPurpose
-------------------------------
10000-20000UDPReal-time media (voice/video)

Note: Firewall must allow UDP ports 10000-20000 for audio to work


๐ŸŒ STUN Servers (for NAT Traversal)

Primary STUN Server


Server: stun.l.google.com
Port: 19302
Protocol: UDP

Alternative STUN Servers


If you need to configure your SIP phone/softphone with STUN:

stun.l.google.com:19302           (Google - Primary)
stun1.l.google.com:19302 (Google - Backup 1)
stun2.l.google.com:19302 (Google - Backup 2)
stun3.l.google.com:19302 (Google - Backup 3)
stun4.l.google.com:19302 (Google - Backup 4)

stun.voip.blackberry.com:3478 (Blackberry)
stun.ekiga.net:3478 (Ekiga)
stun.ideasip.com:3478 (IdeaSIP)
stun.voipbuster.com:3478 (VoIPBuster)
stun.voipstunt.com:3478 (VoIPStunt)


๐Ÿ“ฑ SIP Phone Configuration

For Public Internet Connection


Server/Proxy: 64.20.46.178
Port: 5060
Transport: UDP
Username: 2000 (or 2001, 2002, 2003)
Password: [Your extension password]

For Tailscale VPN Connection


Server/Proxy: 100.64.0.2
Port: 5060
Transport: UDP
Username: 2000 (or 2001, 2002, 2003)
Password: [Your extension password]

Recommended Phone Settings


STUN Server: stun.l.google.com:19302
Enable ICE: Yes
RTP Symmetric: Yes
NAT Traversal: Enabled
Codec Priority:
  • ulaw (G.711 ฮผ-law)

  • alaw (G.711 A-law)

  • gsm

  • ๐Ÿ” Firewall Rules

    Incoming Traffic (Allow)


    # SIP Signaling
    -A INPUT -p udp --dport 5060 -j ACCEPT
    -A INPUT -p tcp --dport 5060 -j ACCEPT
    -A INPUT -p udp --dport 5160 -j ACCEPT
    -A INPUT -p udp --dport 5260 -j ACCEPT

    RTP Media


    -A INPUT -p udp --dport 10000:20000 -j ACCEPT

    STUN (if needed)


    -A OUTPUT -p udp --dport 19302 -j ACCEPT
    -A OUTPUT -p udp --dport 3478 -j ACCEPT

    CSF Firewall (Current System)


    # Add to /etc/csf/csf.conf
    TCP_IN = "5060,5061,22,80,443,..."
    TCP_OUT = "5060,5061,22,80,443,..."
    UDP_IN = "5060,5160,5260,10000:20000"
    UDP_OUT = "5060,5160,5260,10000:20000,3478,19302"

    Then restart CSF


    csf -r

    ๐Ÿงช Test Extensions

    All test extensions now working after dialplan reload:

    Queue Audio Tests




    Last Updated: October 14, 2025 01:35 AM
    Status: All configurations active, dialplan loaded, ready for testing