[Freeswitch-users] nonat?
Antony Stone
Antony.Stone at freeswitch.open.source.it
Fri Aug 20 15:37:40 UTC 2021
Hi.
I have just installed my first FreeSwitch server on a virtual machine on my
local network, and I'm playing with it and a couple of SIP phones on the same
network, in order to learn about it.
I've got the phones to register to the server (I've changed the default
password in vars.xml), and my first test is simply to place a call between one
phone and the other.
I've discovered the "NAT feature" of FreeSwitch, where it finds out what the
*external* IP address of my Internet router is (which has nothing to do with
the FreeSwitch server or the phones I'm trying to work with here), and starts
presenting that address to the telephones in the Invite messages (inlcuding
the SDP negotiations).
I've found https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat and
https://freeswitch.org/confluence/display/FREESWITCH/NAT+Traversal which tell
me that I need to use the "-nonat" command-line option to freeswitch to
disable this.
However, this doesn't work for me:
# ps ax | grep freeswitch
3678 ? S<Lsl 0:02 /usr/bin/freeswitch -u freeswitch -ncwait -nonat
> sofia status profile internal
=================================================================================================
Name internal
Domain Name N/A
Auto-NAT false
DBName sofia_reg_internal
Pres Hosts 192.168.32.59,192.168.32.59
Dialplan XML
Context public
Challenge Realm auto_from
RTP-IP 192.168.32.59
Ext-RTP-IP 198.51.100.21
SIP-IP 192.168.32.59
Ext-SIP-IP 198.51.100.21
URL sip:mod_sofia at 198.51.100..21:5060
BIND-URL
sip:mod_sofia at 198.51.100.21:5060;maddr=192.168.32.59;transport=udp,tcp
WS-BIND-URL sip:mod_sofia at 192.168.32.59:5066;transport=ws
WSS-BIND-URL sips:mod_sofia at 192.168.32.59:7443;transport=wss
As you can see, my public IP address (represented here by 198.51.100.21) is
still there, and it's still getting included in the Invite message and SDP
negotiations between my telephones.
So, how can I run FreeSwitch and two SIP telephones on a single internal
network, without any reference to my public IP address?
Thanks,
Antony.
--
"640 kilobytes (of RAM) should be enough for anybody."
- Bill Gates
Please reply to the list;
please *don't* CC me.
More information about the FreeSWITCH-users
mailing list