[asterisk-bugs] [Asterisk 0013065]: [patch] sip_nat_settings - script to generate externip and localnet
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Oct 8 01:11:02 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13065
======================================================================
Reported By: tzafrir
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 13065
Category: Utilities/NewFeature
Reproducibility: N/A
Severity: minor
Priority: normal
Status: new
Asterisk Version: 1.4.21
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-07-13 01:23 CDT
Last Modified: 2008-10-08 01:11 CDT
======================================================================
Summary: [patch] sip_nat_settings - script to generate
externip and localnet
Description:
If an Asterisk system is behind NAT, SIP calls outside will usually have no
audio unless externip and localnet are set.
In most cases (a single network interface) it is possible to give a sane
value for localnet. figuring out externip cannot be done locally. I simply
ended up asking http://whatismyip.org/ (and big thanks to whoever set it
up).
Naturally those are sane defaults only if I know in advance that the
system is behind NAT.
I used it with asterisk 1.4 on several occasions. AFAIK it is still needed
(and with the same ocnfiguration directives) in trunk.
Example output:
externip = 62.90.10.53
localnet = 192.168.0.255/255.255.255.0
======================================================================
----------------------------------------------------------------------
(0093341) pabelanger (reporter) - 2008-10-08 01:11
http://bugs.digium.com/view.php?id=13065#c93341
----------------------------------------------------------------------
> ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1e:c9:bb:f4:2b
inet addr:172.16.1.3 Bcast:172.16.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5496484 errors:0 dropped:0 overruns:0 frame:0
TX packets:6981446 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3948404552 (3.6 GB) TX bytes:4141116534 (3.8 GB)
Interrupt:16
> sh ./sip_nat_settings_6
externip = 74.15.174.36
localnet = 172.16.1.255/255.255.255.0
Question: shouldn't the localnet actually be 172.16.1.0/255.255.255.0 for
the network? Not 172.16.1.255/255.255.255.0 the broadcast?
Issue History
Date Modified Username Field Change
======================================================================
2008-10-08 01:11 pabelanger Note Added: 0093341
======================================================================
More information about the asterisk-bugs
mailing list