View previous topic :: View next topic |
Author |
Message |
cmac86
Joined: 17 Apr 2013 Posts: 3
|
Posted: Wed Apr 17, 2013 2:20 am Post subject: upnpc working on OSX but not Linux |
|
|
Hi,
I'm trying to get upnpc working on Arch Linux. Doing a 'upnpc -s' gives me 'No IGD UPnP Device found on the network !'
I've tried all sorts of iptables configs this is my current:
Code: | :INPUT ACCEPT [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p icmp -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5000 -j ACCEPT
-A INPUT -p udp -m udp --dport 1900 -j ACCEPT
-A OUTPUT -p tcp -m tcp --sport 5000 -j ACCEPT
-A OUTPUT -p udp -m udp --sport 1900 -j ACCEPT
-A OUTPUT -p udp -d 239.255.255.250 --dport 1900 -j ACCEPT
-A INPUT -p udp -d 239.255.255.250 --dport 1900 -j ACCEPT |
I thought i would try it on my Macbook Pro to make sure it wasn't a problem with my router and it worked. Here is my output of './upnpc-static -s' on OSX:
Code: | upnpc : miniupnpc library test client. (c) 2005-2013 Thomas Bernard
Go to miniupnp.free.fr/ or miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
desc: http://192.168.0.1:80/RootDevice.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
Found valid IGD : http://192.168.0.1:80/WANIPConnection
Local LAN ip address : 192.168.0.13
Connection Type : IP_Routed
Status : Connected, uptime=175360s, LastConnectionError : ERROR_NONE
Time started : Sun Apr 14 18:08:40 2013
MaxBitRateDown : 1000000000 bps (1000.0 Mbps) MaxBitRateUp 1000000000 bps (1000.0 Mbps)
ExternalIPAddress = *************
Bytes: Sent: 1002513135 Recv: 1575421457
Packets: Sent: 3102496 Recv: 10392342 |
I can get it working on Arch Linux if I use ' upnpc -u http://192.168.0.1:80/RootDevice.xml '
But it will not discover my router automatically. I've also tried on Ubuntu 12.04 with the same results as Arch Linux.
Is there something else that could be blocking the SSNP other than iptables? Please help.
I'm using the package available in Arch Linux which is v1.6.
UPDATE: I just tried with latest v1.8 with the same results on Arch Linux. |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Mon Apr 22, 2013 1:13 pm Post subject: |
|
|
how much network interface do you have on your linux machine ?
Unless specified with the "-m" option, upnpc uses the default one _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
cmac86
Joined: 17 Apr 2013 Posts: 3
|
Posted: Wed Apr 24, 2013 6:31 pm Post subject: |
|
|
I only have eth0 and lo
I've also tried specifying eth0 with the same results as not specifying it. |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Thu Apr 25, 2013 9:16 am Post subject: |
|
|
use a tool such as wireshark / tcpdump to see if upnpc is failing to send M-SEARCH SSDP packets, or if it is failing to receive responses... _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
|