Difference between revisions of "Asterisk under NAT"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 1: Line 1:
If your Asterisk box is under NAT, you should edit ''/etc/asterisk/sip.conf'' file:
If your Asterisk box is under NAT, you should edit ''/etc/asterisk/sip.conf'' file:


[global]<br>
  externip = <YOUR REAL IP>
  externip = <YOUR REAL IP>
  localnet = <LOCAL NET IP/MASK>
  localnet = <LOCAL NET IP/MASK>
Line 6: Line 7:
Example:
Example:


[global]<br>
  externip = 23.45.67.89
  externip = 23.45.67.89
  localnet = 10.10.1.0/255.255.255.0
  localnet = 10.10.1.0/255.255.255.0

Revision as of 10:57, 11 January 2008

If your Asterisk box is under NAT, you should edit /etc/asterisk/sip.conf file:

[global]
externip = <YOUR REAL IP> localnet = <LOCAL NET IP/MASK>

Example:

[global]
externip = 23.45.67.89 localnet = 10.10.1.0/255.255.255.0

Forward SIP ports (UDP 5060, 10000-20000) on your firewall to this Asterisk machine.

Restart Asterisk.