<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Greetings all,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>A question on NATing in Freeswitch – I have my internal SIP profile to use a static public IP for the ext-sip-ip and ext-rtp-ip. The Freeswitch server is on a local LAN IP, for example 192.168.0.10. External SIP clients can access the server via the external IP, as there’s a static NAT on the router to map the public IP to the private IP.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have another SIP client on a different LAN, but behind the same firewall, for example, 10.0.0.10. This client is allowed to talk to the server on its private ip of 192.168.0.10, by allowing inter-vlan traffic to pass through. My challenge is, how do I get Freeswitch to recognise this internal SIP client as being allowed to use the internal IP for SIP/RTP communications, and therefore present the client with internal addresses in the SIP header for SIP/RTP? Due to statically setting ext-sip-ip and ext-rtp-ip, Freeswitch tells the client to go via the public IP. The firewall has a policy to not accept traffic to the public IP if sourced from an internal device.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have explored the NATing options in Freeswitch, but can’t find anything that fits my scenario. It seems to be more towards how to enable NAT in certain situations, not disable it. I have also looked at re-writing the SDP, but this re-writes the incoming SDP from the clients. My intention was to re-write the outgoing SDP from the Freeswitch to include the internal IP address as the RTP connect in address.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I don’t have much Asterisk experience, but I seem to remember a nat.conf file where you could specify subnets that were treated differently. These could be classed as internal subnets, and would be given the private IP in the SDP from asterisk, everything got the public IP.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m also aware that I could create another SIP profile easily with different NATing/IP options, but I want to find out if there’s anything I can do with the above first.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Many thanks for the help!<o:p></o:p></p></div></body></html>