Freeswitch behind NAT issue

Status
Not open for further replies.

cyberhaze

New Member
Mar 17, 2019
1
0
1
32
Hi there!
I'm sorry for a stupid question. I'm new to FreeSwith, now exploring it via FusionPBX. I'm experiencing an issue that was troubleshooted in a second in Asterisk, but I'm not able to find a solution for FusionPBX for days.
Your help would be appreciated.

I have a fresh FusionPBX installation on Debian 9. PBX VM (192.168.1.100) that uses a different VM (psSense 192.168.1.1) as a gateway. PBX VM itself doesn't have a public IP, so it uses the gateway's/NAT public IP. One NAT side port forwarding is configured to route ports 5060-5090, 16384-32768 (TCP/UDP) to 192.196.1.100. I have also disabled source address port rewriting in the pfsense outbound NAT settings.All incoming connections are allowed in pfSense Firewall and within FusionPBX.

The connection works fine, however there is a problem with one-way audio. If I dial echotest or any extension, there is no audio. If I dial test tone or test music feature code, audio from server is being routed properly, so the issue is with the connection from a softphone located outside VMs LAN. I've tried different NAT settings - no result. The same softphone works with other server with no issues.

I applied autonat:externalIP settings from FusionPBX KB - no result: https://docs.fusionpbx.com/en/latest/additional_information/nat.html
I also edited external_rtp_ip, external_sip_ip to make them match the gateway's public static IP.
aggressive-nat-detection is enabled.

Checked FreeSWITCH Behind NAT section of https://freeswitch.org/confluence/display/FREESWITCH/NAT+Traversal as well
Still no audio from external softphones, connection via the gateways (pf sense) WAN.

I appreciate any ideas.

Here is the connection logic:
Remote Softphone -> WAN -> pfsense (Public WAN address: 22.33.44.55)-> LAN (Port Forwarding) -> FusionPBX (192.168.1.100)

If I add a public IP to FusionPBX VM, everything works for incoming connections via this IP.
 

UCtech

Member
Jan 9, 2019
34
6
8
These are the settings that fixed this problem for me (also using pfSense):

1. Edit /etc/default/freeswitch from the CLI and remove -nonat
2. Advanced-Sip Profiles - External (NOT Internal), ext_rtp_ip & ext_sip_ip change to autonat:XXX.XXX.XXX.XXX with the x's being the public IP
3. Restart Freeswitch

https://www.pbxforums.com/threads/freeswitch-1-8-5-nat-bug.3069/
(Still not sure what the issue with the bug is but these settings worked for me)
 
Status
Not open for further replies.