<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I am getting NAT detection errors:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>fs_cli:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>freeswitch@internal&gt; nat_map status</span><span style='color:#1F497D'><o:p></o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>Nat Type: UNKNOWN, ExtIP:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>NAT port mapping enabled.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>freeswitch.log<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>2014-06-21 07:55:56.415860 [INFO] switch_nat.c:420 Scanning for NAT<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>2014-06-21 07:55:56.415860 [DEBUG] switch_nat.c:170 Checking for PMP 1/5<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>2014-06-21 07:55:56.415860 [ERR] switch_nat.c:201 Error checking for PMP [general error]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>2014-06-21 07:55:56.415860 [DEBUG] switch_nat.c:425 Checking for UPnP<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>2014-06-21 07:56:08.415906 [INFO] switch_nat.c:441 No PMP or UPnP NAT devices detected!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>Network topology:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>LAN / eth0 = 192.168.1.1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>WAN /eth1 = 192.0.xxx.xxx (dynamic IP)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>I have tracked this down to upnp M-SEARCH is being sent using the WAN, as opposed to LAN interface.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>From: autoload_configs/acl.conf.xml<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>&nbsp;&nbsp;&nbsp; &lt;list name=&quot;lan&quot; default=&quot;allow&quot;&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;node type=&quot;deny&quot; cidr=&quot;192.168.1.1/32&quot;/&gt; &lt;!-- B.R. Changed from 192.168.42.0/24 --&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;node type=&quot;allow&quot; cidr=&#8221;192.168.1.1/16&quot;/&gt; &lt;!-- B.R. Changed from 192.168.42.42/32 --&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'>&nbsp;&nbsp;&nbsp; &lt;/list&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA'><o:p>&nbsp;</o:p></span></p></div></div><p><span lang=EN style='font-size:11.0pt'>root@OpenWrt:/usr/local/freeswitch/conf# tcpdump -i eth1 | grep 1900:</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:11.0pt'>tcpdump: verbose output suppressed, use -v or -vv for full protocol decode</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:11.0pt'>listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:11.0pt'>07:55:56.431306 IP 192-0-XXX-XXX.cpe.teksavvy.com.52711 &gt; 239.255.255.250.1900: UDP, length 137</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:11.0pt'>07:55:59.431423 IP 192-0-XXX-XXX.cpe.teksavvy.com.52711 &gt; 239.255.255.250.1900: UDP, length 132</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:11.0pt'>07:56:02.431512 IP 192-0-XXX-XXX.cpe.teksavvy.com.52711 &gt; 239.255.255.250.1900: UDP, length 133</span><span lang=EN><o:p></o:p></span></p><p><span lang=EN style='font-size:11.0pt'>07:56:05.431642 IP 192-0-XXX-XXX.cpe.teksavvy.com.52711 &gt; 239.255.255.250.1900: UDP, length 101</span><span lang=EN><o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#1F497D;mso-fareast-language:EN-CA'>Questions:<o:p></o:p></span></b></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Q1: How do I coerece upnp to broadcast using eth0 (LAN), as opposed to eth1 (WAN)?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Q2: What is the algorithm upnp uses to determine multicast interface?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Bill Ross<o:p></o:p></span></p></div></body></html>