Hi;
I am getting NAT detection errors:
fs_cli:
freeswitch@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@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