[Freeswitch-users] upnp sending M-SEARCH to wan, as opposed to lan ethernet interface

Bill Ross rossbcan at gmail.com
Sat Jun 21 17:06:22 MSD 2014


Hi;

 

I am getting NAT detection errors:

 

fs_cli:

freeswitch at internal> nat_map status

Nat Type: UNKNOWN, ExtIP:

NAT port mapping enabled.

 

freeswitch.log

2014-06-21 07:55:56.415860 [INFO] switch_nat.c:420 Scanning for NAT

2014-06-21 07:55:56.415860 [DEBUG] switch_nat.c:170 Checking for PMP 1/5

2014-06-21 07:55:56.415860 [ERR] switch_nat.c:201 Error checking for PMP
[general error]

2014-06-21 07:55:56.415860 [DEBUG] switch_nat.c:425 Checking for UPnP

2014-06-21 07:56:08.415906 [INFO] switch_nat.c:441 No PMP or UPnP NAT
devices detected!

 

Network topology:

LAN / eth0 = 192.168.1.1

WAN /eth1 = 192.0.xxx.xxx (dynamic IP)

 

I have tracked this down to upnp M-SEARCH is being sent using the WAN, as
opposed to LAN interface.

 

From: autoload_configs/acl.conf.xml

 

    <list name="lan" default="allow">

      <node type="deny" cidr="192.168.1.1/32"/> <!-- B.R. Changed from
192.168.42.0/24 -->

      <node type="allow" cidr="192.168.1.1/16"/> <!-- B.R. Changed from
192.168.42.42/32 -->

    </list>

 

root at OpenWrt:/usr/local/freeswitch/conf# tcpdump -i eth1 | grep 1900:

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode

listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes

07:55:56.431306 IP 192-0-XXX-XXX.cpe.teksavvy.com.52711 >
239.255.255.250.1900: UDP, length 137

07:55:59.431423 IP 192-0-XXX-XXX.cpe.teksavvy.com.52711 >
239.255.255.250.1900: UDP, length 132

07:56:02.431512 IP 192-0-XXX-XXX.cpe.teksavvy.com.52711 >
239.255.255.250.1900: UDP, length 133

07:56:05.431642 IP 192-0-XXX-XXX.cpe.teksavvy.com.52711 >
239.255.255.250.1900: UDP, length 101

Questions:

 

Q1: How do I coerece upnp to broadcast using eth0 (LAN), as opposed to eth1
(WAN)?

Q2: What is the algorithm upnp uses to determine multicast interface?

 

Thanks;

Bill Ross

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140621/3e58f877/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list