NAT not working

Tobias.F

New Member
Aug 2, 2020
13
2
3
Hello,

I do not get FusionPBX running behind NAT. I get the typical symptoms of no audio and disconnection after 30 sec.

I am running out of ideas where to search. I believe that the firewall setting of OPNsense are OK as ist was working without problem with 3CX. I only adopted IP and port range to match to FusionPBX. As client I use Linphone on Windows PC and on Android. SIP trunk is my provider modem on different LAN network.

My settings:

Firewall: NAT outbound
static for IP/32 of FusionPBX

Firewall: NAT inbound
5060-5061 --> IP/32 of FusionPBX
5080-5081 --> IP/32 of FusionPBX
16384-32768 --> IP/32of FusionPBX

Firewall: rules
WAN 5060-5061 --> IP/32
WAN 5080-5081 --> IP/32
WAN 16384-32768 --> IP/32

FusionPBX: SIP profile
aggressive-nat-detection
value: true
enable: true

FusionPBX: variables
external_rtp_ip autonat:<external IP>
external_sip_ip autonat:<external IP>

Any idea?
 

Tobias.F

New Member
Aug 2, 2020
13
2
3
I have to correct my failure above based on new findings.

The communication between two extensions is working from LAN as well from WAN. I tested with Linphone on Windows PC on LAN side and Linephone on Android on LAN side in one test and Linephone on Android on WAN side in the second test.

What is not working correctly is the connection to the SIP trunk. There is no NAT in between.
I have to further test what's wrong. But where to search?
 

Tobias.F

New Member
Aug 2, 2020
13
2
3
My issue is sloved.

As assumed port forwarding and firewall was OK. The issue was related to the SIP profiles. Skipping functions like autonat and using a separate sip profiles for the different "zones" solved my issue.