VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
gary at guthary.com Guest
|
Posted: Mon Jun 16, 2008 6:33 am Post subject: [asterisk-users] Help! - Double NAT issue |
|
|
Hi folks.
Please don't flame me but I've been googling around for days, read a
tremendous amount, tried everything, and still no go.
This is most definitely a typical newbie question. - I sure hope there's
somebody(s) out there who'll humble themselves to help me out.
I've set up an 'out of the box' basic Asterisk server running on Slackware
Linux. - It basically works fine. - The wife and I are having lots of fun
playing around with all the VOIP phones I'm using to talk to the thing.
Now. - I want to try to take a phone to my office and try to connect from
there. - But I can't. - Sound familiar?
Here's my setup & some scenarios:
|-----------Home-----------------| |-----OFFICE-------|
Asterisk box <---->Linksys WRT54G<--->Internet<--->Linksys WRT54G
At home...
Router: Linksys WRT54G
Public IP address: 61.25.172.48 (static)
Public Netmask: 255.255.255.128
DNS1: 220.152.38.233
DNS2: 220.152.38.201
Internal IP range: 10.0.0.xxx
Internal IP Netmask: 255.255.255.0
Router's internal IP: 10.0.0.1
DMZ Enabled, points to: 10.0.0.12 (Asterisk server)
(see below)
DHCP Enabled, pool starts: 10.0.0.100
Asterisk Server....
IP address: 10.0.0.12
Netmask: 255.255.255.0
DNS: Same as router's.
Changes made to sip.conf
externip=61.25.172.48
localnet=10.0.0.0/255.255.255.0
nat=yes
FYI - No other changes made to ANY of Asterisk's .conf files. - It's a basic
'vanilla' test box.
At the office...
Router: Linksys WRT54G
(out of the box config)
Scenarios:
I have a Sipura SPA-1001, Cisco-7940, Cisco-7905, and X-Lite running on my
home PC.
Although I've got DNS servers assigned, I'm not using server.domain names
(IP addresses only). - So I believe DNS is not an issue.
Scenario A. - When the devices are 'pointing' to the Asterisk server's
'internal' IP (10.0.0.12), they all register and work fine.
Scenario B. - If I configurer a phone to use (as a proxy) the home's 'public
IP' (61.25.172.4, it works fine. - This tells me (I believe) that the
phone is going to the router's 'public IP' but since DMZ is turned on, all
the ports are forwarded to the Asterisk box's 'internal' IP (10.0.0.12).
Scenario C. - The problem.......
If I take a device to my office (i.e. the Sipura) and connect it. - It is
configured to 'talk' to my home's 'public IP'. - This thing doesn't even
REGISTER with the Asterisk server. - So I can't even try to make a call.
This is verified (from the office) by being telnet(ted) into my home
Asterisk box and watching it's console.
Anybody have any clue?
If you want to try for yourself, set up a device and try to connect to my
box's 'public IP' (above) and use a username of '60' with a password of
'1234'. - If that works, try extension '1000' and see if you get the
Asterisk box's 'congratulations' message.
I'd be very interested in your results.
Also, if anybody wants to take this off-forum and discuss/help me out, I'll
be greatly thankful. - I have a Broadvoice account and we can even establish
a phonecon.
Thanks VERY MUCH in advance.
Gary Guthary |
|
Back to top |
|
|
stotaro at totarotechn... Guest
|
Posted: Mon Jun 16, 2008 6:56 am Post subject: [asterisk-users] Help! - Double NAT issue |
|
|
On Mon, Jun 16, 2008 at 7:33 AM, Gary Guthary <gary at guthary.com> wrote:
Quote: | Hi folks.
Please don't flame me but I've been googling around for days, read a
tremendous amount, tried everything, and still no go.
This is most definitely a typical newbie question. - I sure hope there's
somebody(s) out there who'll humble themselves to help me out.
I've set up an 'out of the box' basic Asterisk server running on Slackware
Linux. - It basically works fine. - The wife and I are having lots of fun
playing around with all the VOIP phones I'm using to talk to the thing.
Now. - I want to try to take a phone to my office and try to connect from
there. - But I can't. - Sound familiar?
Here's my setup & some scenarios:
|-----------Home-----------------| |-----OFFICE-------|
Asterisk box <---->Linksys WRT54G<--->Internet<--->Linksys WRT54G
At home...
Router: Linksys WRT54G
Public IP address: 61.25.172.48 (static)
Public Netmask: 255.255.255.128
DNS1: 220.152.38.233
DNS2: 220.152.38.201
Internal IP range: 10.0.0.xxx
Internal IP Netmask: 255.255.255.0
Router's internal IP: 10.0.0.1
DMZ Enabled, points to: 10.0.0.12 (Asterisk server)
(see below)
DHCP Enabled, pool starts: 10.0.0.100
Asterisk Server....
IP address: 10.0.0.12
Netmask: 255.255.255.0
DNS: Same as router's.
Changes made to sip.conf
externip=61.25.172.48
localnet=10.0.0.0/255.255.255.0
nat=yes
FYI - No other changes made to ANY of Asterisk's .conf files. - It's a basic
'vanilla' test box.
At the office...
Router: Linksys WRT54G
(out of the box config)
Scenarios:
I have a Sipura SPA-1001, Cisco-7940, Cisco-7905, and X-Lite running on my
home PC.
Although I've got DNS servers assigned, I'm not using server.domain names
(IP addresses only). - So I believe DNS is not an issue.
Scenario A. - When the devices are 'pointing' to the Asterisk server's
'internal' IP (10.0.0.12), they all register and work fine.
Scenario B. - If I configurer a phone to use (as a proxy) the home's 'public
IP' (61.25.172.4, it works fine. - This tells me (I believe) that the
phone is going to the router's 'public IP' but since DMZ is turned on, all
the ports are forwarded to the Asterisk box's 'internal' IP (10.0.0.12).
Scenario C. - The problem.......
If I take a device to my office (i.e. the Sipura) and connect it. - It is
configured to 'talk' to my home's 'public IP'. - This thing doesn't even
REGISTER with the Asterisk server. - So I can't even try to make a call.
This is verified (from the office) by being telnet(ted) into my home
Asterisk box and watching it's console.
Anybody have any clue?
If you want to try for yourself, set up a device and try to connect to my
box's 'public IP' (above) and use a username of '60' with a password of
'1234'. - If that works, try extension '1000' and see if you get the
Asterisk box's 'congratulations' message.
I'd be very interested in your results.
Also, if anybody wants to take this off-forum and discuss/help me out, I'll
be greatly thankful. - I have a Broadvoice account and we can even establish
a phonecon.
Thanks VERY MUCH in advance.
Gary Guthary
|
I just tried and it timed out. Is SSH or HTTP running on your box? I
cannot access those either. I get a telnet login.
Thanks,
Steve T |
|
Back to top |
|
|
gordon+asterisk at dro... Guest
|
Posted: Mon Jun 16, 2008 7:08 am Post subject: [asterisk-users] Help! - Double NAT issue |
|
|
On Mon, 16 Jun 2008, Gary Guthary wrote:
Quote: | If I take a device to my office (i.e. the Sipura) and connect it. - It is
configured to 'talk' to my home's 'public IP'. - This thing doesn't even
REGISTER with the Asterisk server. - So I can't even try to make a call.
This is verified (from the office) by being telnet(ted) into my home
Asterisk box and watching it's console.
Anybody have any clue?
If you want to try for yourself, set up a device and try to connect to my
box's 'public IP' (above) and use a username of '60' with a password of
'1234'. - If that works, try extension '1000' and see if you get the
Asterisk box's 'congratulations' message.
I'd be very interested in your results.
|
Works just fine.
Tell the remote phone to use a STUN server.
(And you might want to set dtmf=rfc2388 mode in sip.conf)
Gordon |
|
Back to top |
|
|
bails at westcomuk.com Guest
|
Posted: Mon Jun 16, 2008 8:01 am Post subject: [asterisk-users] Help! - Double NAT issue |
|
|
Gordon Henderson wrote:
Quote: | On Mon, 16 Jun 2008, Gary Guthary wrote:
Quote: | If I take a device to my office (i.e. the Sipura) and connect it. - It is
configured to 'talk' to my home's 'public IP'. - This thing doesn't even
REGISTER with the Asterisk server. - So I can't even try to make a call.
This is verified (from the office) by being telnet(ted) into my home
Asterisk box and watching it's console.
Anybody have any clue?
If you want to try for yourself, set up a device and try to connect to my
box's 'public IP' (above) and use a username of '60' with a password of
'1234'. - If that works, try extension '1000' and see if you get the
Asterisk box's 'congratulations' message.
I'd be very interested in your results.
|
Works just fine.
Tell the remote phone to use a STUN server.
(And you might want to set dtmf=rfc2388 mode in sip.conf)
Gordon
|
Works fine from here too.
Bails
--
This message has been scanned for viruses and
dangerous content by MailScanner at Circlemail, and is
believed to be clean. |
|
Back to top |
|
|
spamsucks2005 at gmail... Guest
|
Posted: Mon Jun 16, 2008 8:35 am Post subject: [asterisk-users] Help! - Double NAT issue |
|
|
Just FWIW, I have been doing double NAT with asterisk and all kinds of
SIP phones for years, including BT101, Sipura 941, and Polycom IP500
plus many cheap no name brands, plus many softphones like Zoiper,
X-Lite and Gizmo Project.. However, DMZ has never worked properly for
me with asterisk on any router. No idea why, but I forward ports to
asterisk rather than use a DMZ. YMMV |
|
Back to top |
|
|
seandarcy2 at gmail.com Guest
|
Posted: Tue Jun 17, 2008 6:31 pm Post subject: [asterisk-users] Help! - Double NAT issue |
|
|
Try this. It WFM:
localnet=10.0.0.0/255.255.255.0
nat = yes
stunaddr = stun.ekiga.net ; or some other stun server, e.g.: foo.stun.com:3478
externrefresh = 15 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|