[Asterisk-Users] Has anyone got Asterisk working behind a NAT
connection to users within a NAT
Wilson Pickett
spamsucks2005 at gmail.com
Tue Apr 12 10:08:04 MST 2005
> > Are you using nat=yes in sip.conf entries and giving the externip and
> > localnet parameters?
> Also set the canreinvite=no for the external phones. that
I keep forgetting that, thanks!
So to recap in a single post:
In sip.conf
[general]
port=5060
; other stuff
externip=your.ip.addr.here
localnet=192.168.0.0/255.255.255.0
nat = yes
; further down in friend defs
; a SIP phone
[2000]
type=friend
;
nat=yes
canreinvite=no
Forward from router all WAN request on these ports to asterisk local ip address
Port 5060
Ports 10000-10100
anything else you need, such as ssh, http, IAX2...
More information about the asterisk-users
mailing list