sip_nat.conf making calls work behind NAT Firewall Asterisk, Trixbox, FreePBX, Elastix and more.

You have to setup the sip_nat.conf with the External IP and the Internal Network if you are behin a NAT Firewall.. You may be able to make calls if you do but people will not hear you on the other end. Your PBX will not know where all the traffic goes. So we edit /etc/asterisk/sip_nat.confwith the following.


If you have more than one internal network you need to add it as well. Here is an example with 3 different networks so they have three entries for the localnet.

Here is what we did to make it work.


Once we did this all calls worked on all three networks

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Change Default FreePBX password AsteriskNOW 1.7

After you install AsteriskNOW FreePBX the default password is set to fpbx. This can be a security...

HylaFax Server Install for connection to Asterisk PBX

HylaFax Server Install and setup for connection to Asterisk PBX Use vi editor or if you prefer...

Trixbox, Elastix FreePBX Trunk two servers together

This will trunk two asterisk servers together. Once you have them trunked you can add dial rules...