This forum has been archived. All content is frozen. Please use KDE Discuss instead.

upnp doesn't work with miniupnpd on the gateway

Tags: None
(comma "," separated)
foolofil
Registered Member
Posts
5
Karma
0
hey there !

Code: Select all
$ ktorrent -v
Qt: 4.4.2
KDE: 4.1.3 (KDE 4.1.3)
KTorrent: 3.1.5

$ uname -srm
Linux 2.6.27-gentoo x86_64


ktorrent doesn't bind ports through upnpd, and I can't explain why.
I have the upnp plugin loaded, clicking on "rescan" does nothing'.

Here's what ktupnptest shows :
Code: Select all
Sat Dec 6 00:27:47 2008: Searching for routers ...
Sat Dec 6 00:27:47 2008: Trying to find UPnP devices on the local network
Sat Dec 6 00:27:47 2008: Sending :
Sat Dec 6 00:27:47 2008: M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
ST:urn:schemas-upnp-org:device:InternetGatewayDevice:1
MAN:"ssdp:discover"
MX:3


Although I *did* get a shout from the server. Here comes the transaction content, taken from wireshark (some newlines omitted for clarity). This happenned while ktupnptest was listening :
Code: Select all
NOTIFY * HTTP/1.1
HOST:239.255.255.250:1900
Cache-Control:max-age=120
Location:http://192.168.1.10:8588/rootDesc.xml
Server: OpenBSD/4.4 UPnP/1.0 MiniUPnPd/1.2
NT:upnp:rootdevice
USN:uuid:00000000-0000-0000-0000-000000000000::upnp:rootdevice
NTS:ssdp:alive

NOTIFY * HTTP/1.1
HOST:239.255.255.250:1900
Cache-Control:max-age=120
Location:http://192.168.1.10:8588/rootDesc.xml
Server: OpenBSD/4.4 UPnP/1.0 MiniUPnPd/1.2
NT:urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN:uuid:00000000-0000-0000-0000-000000000000::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS:ssdp:alive

NOTIFY * HTTP/1.1
HOST:239.255.255.250:1900
Cache-Control:max-age=120
Location:http://192.168.1.10:8588/rootDesc.xml
Server: OpenBSD/4.4 UPnP/1.0 MiniUPnPd/1.2
NT:urn:schemas-upnp-org:device:WANConnectionDevice:1
USN:uuid:00000000-0000-0000-0000-000000000000::urn:schemas-upnp-org:device:WANConnectionDevice:1
NTS:ssdp:alive

NOTIFY * HTTP/1.1
HOST:239.255.255.250:1900
Cache-Control:max-age=120
Location:http://192.168.1.10:8588/rootDesc.xml
Server: OpenBSD/4.4 UPnP/1.0 MiniUPnPd/1.2
NT:urn:schemas-upnp-org:device:WANDevice:1
USN:uuid:00000000-0000-0000-0000-000000000000::urn:schemas-upnp-org:device:WANDevice:1
NTS:ssdp:alive

NOTIFY * HTTP/1.1
HOST:239.255.255.250:1900
Cache-Control:max-age=120
Location:http://192.168.1.10:8588/rootDesc.xml
Server: OpenBSD/4.4 UPnP/1.0 MiniUPnPd/1.2
NT:urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1
USN:uuid:00000000-0000-0000-0000-000000000000::urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1
NTS:ssdp:alive

NOTIFY * HTTP/1.1
HOST:239.255.255.250:1900
Cache-Control:max-age=120
Location:http://192.168.1.10:8588/rootDesc.xml
Server: OpenBSD/4.4 UPnP/1.0 MiniUPnPd/1.2
NT:urn:schemas-upnp-org:service:WANIPConnection:1
USN:uuid:00000000-0000-0000-0000-000000000000::urn:schemas-upnp-org:service:WANIPConnection:1
NTS:ssdp:alive

NOTIFY * HTTP/1.1
HOST:239.255.255.250:1900
Cache-Control:max-age=120
Location:http://192.168.1.10:8588/rootDesc.xml
Server: OpenBSD/4.4 UPnP/1.0 MiniUPnPd/1.2
NT:urn:schemas-upnp-org:service:WANPPPConnection:1
USN:uuid:00000000-0000-0000-0000-000000000000::urn:schemas-upnp-org:service:WANPPPConnection:1
NTS:ssdp:alive

NOTIFY * HTTP/1.1
HOST:239.255.255.250:1900
Cache-Control:max-age=120
Location:http://192.168.1.10:8588/rootDesc.xml
Server: OpenBSD/4.4 UPnP/1.0 MiniUPnPd/1.2
NT:urn:schemas-upnp-org:service:Layer3Forwarding:1
USN:uuid:00000000-0000-0000-0000-000000000000::urn:schemas-upnp-org:service:Layer3Forwarding:1
NTS:ssdp:alive


Browsing to http://192.168.1.10:8588/rootDesc.xml from my workstation works, and send pretty much the same data as what is contained in the transaction, but in some kind of XML format.

Painful thing to acknowledge is that it works fine with uTorrent/Windows XP.

Any help appreciated, even hints or something, as I tried pretty much everything that passed through my mind.
George
Moderator
Posts
5421
Karma
1

Sat Dec 06, 2008 2:19 pm
Send me the XML file and a wireshark trace.
foolofil
Registered Member
Posts
5
Karma
0

Sat Dec 06, 2008 4:47 pm
Hum I',, sorry I messed it up with my local firewall (the one on the machine running ktestupnp). I found no other way than disabling it to make the whole thing works. If you have any advice on what rules (for linux/iptables) are necessary to let the request pass, I'd be enlightened.
miniupnp
Registered Member
Posts
1
Karma
0

Sat Feb 14, 2009 12:40 pm
foolofil wrote:Hum I',, sorry I messed it up with my local firewall (the one on the machine running ktestupnp). I found no other way than disabling it to make the whole thing works. If you have any advice on what rules (for linux/iptables) are necessary to let the request pass, I'd be enlightened.

Your firewall need to let UDP multicast packets TO and FROM 239.255.255.250:1900
In some case, there also should be a route for 224/8 on the right network interface


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar