[Asterisk-Users] Asterisk behind NAT

Oswaldo Arratia oarratia at workersequity.net
Thu Apr 14 21:55:40 MST 2005


Hi List,
I've spent hours researching on this topic, found tons of info, so far it
doesn't work yet.

Here's the scenario

Asterisk box connected to a router (DMZ enabled to Asterisk) and trying to
send calls to an outside provider.

My SIP phones (outside * NAT) are able to register with no problem.


The problem comes when I send a call out to my provider I get no audio in
either way. My provider sees only my private IP.  How can I send my provider
the public IP??


I have in my sip.conf:

[general]
port=5060                       ; UDP Port to bind to (SIP standard port is
5060)
bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to
all)
nat=yes
externip = x.x.x.x
localnet=192.168.1.0/24

(remember I enabled DMZ on the router so all ports are being forwarded to *)
Despite of what I do, the externip and the localnet my provider only gets my
* private IP.

Any tip how to solve this??

Thanks!!!!





More information about the asterisk-users mailing list