Difference between revisions of "Asterisk under NAT"

From Kolmisoft Wiki
Jump to navigationJump to search
(New page: If your Asterisk box is under NAT, you should edit ''/etc/asterisk/sip.conf'' file: externip = <YOUR REAL IP> localnet = <LOCAL NET IP/MASK> Example: externip = 23.45.67.89 localnet...)
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
If your Asterisk box is under NAT, you should edit ''/etc/asterisk/sip.conf'' file:
If your MOR box is under NAT, you should edit ''/etc/asterisk/sip.conf'' file:


[general]<br>
  externip = <YOUR REAL IP>
  externip = <YOUR REAL IP>
  localnet = <LOCAL NET IP/MASK>
  localnet = <'''LOCANET'''/MASK>


Example:
Example:


[general]<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
Forward SIP ports (UDP 5060, 10000-20000) on your firewall to this Asterisk machine.
Restart Asterisk.
==Attention!==
Do not put these settings in the wrong place! They should be in [general] section.
Also - DO NOT CREATE THESE SETTINGS - they are already in this file.

Latest revision as of 10:54, 27 April 2010

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

[general]
externip = <YOUR REAL IP> localnet = <LOCANET/MASK>

Example:

[general]
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.


Attention!

Do not put these settings in the wrong place! They should be in [general] section.

Also - DO NOT CREATE THESE SETTINGS - they are already in this file.