[Asterisk-Users] Asterisk behind LinkSys NAT Routing

Anthony Wood woody+asterisk at switchonline.com.au
Mon Nov 3 19:00:44 MST 2003


On Mon, Nov 03, 2003 at 09:46:40PM -0400, William Waites wrote:
> On Mon, 3 Nov 2003 17:10:10 -0600 (CST), Martin Pycko wrote
> > It doesn't care about the phones. If you phones are behind nat use nat=yes
> > for each defined account.
> 
> The fix is incorrect. Asterisk chan_sip.c must distinguish between
> SIP peers that are behind the firewall (together with the *) and those
> that are on the outside. Either the configuration flag use_extern_ip
> must be specific to a peer, or it must be figured out in some other
> way. A global variable won't do since it creates a situation where
> either external or internal peers will work but not both.

Internals can use the IP address of the NAT box as the Asterisk Server
IP and then it should work.

i.e. don't set your internal SIP UAs to connect to the internal IP
address of the Asterisk Server.

The fix allows asterisk to work together with the NAT box to appear
to all concerned as if it has a real IP address.

cheers,
Woody



More information about the asterisk-users mailing list