miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Setting miniupnpd in OpenWRT without fail self

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
vbh



Joined: 26 Oct 2014
Posts: 2

PostPosted: Sun Oct 26, 2014 9:37 am    Post subject: Setting miniupnpd in OpenWRT without fail self Reply with quote

Hello, where a year ago I had a problem: I started falling internet using torrent. At first I thought it was either because the provider or network settings wrong. Then I used OpenWRT 12.09 (version miniupnpd not remember) on the TP-WRD3600. Without hesitation, I went to Gargoyle 1.5.4 and it all worked. But since version 1.6.2 of the compound began to fall again internet using torrent. But this time, the logs had more information (now I'm using OpenWRT 14.07 + miniupnpd 1.8.20140523-4). If you believe them, then disconnect causes incident firewall, which pulls over a network interface.
Back to top
View user's profile Send private message Send e-mail
vbh



Joined: 26 Oct 2014
Posts: 2

PostPosted: Sun Oct 26, 2014 9:37 am    Post subject: Reply with quote

AntiSpam Smile
The problem is that miniupnpd in SSDP request there is a line:
Code:
OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01


How to reconfigure miniupnpd?
Utorrent:
Quote:
[2014-10-26 13:10:21] Using IP address 192.168.1.116
[2014-10-26 13:10:21] UPnP: No cached host. Returning false from CheckCachedUpnpHost()
[2014-10-26 13:10:21] UPnP: Joined multicast group
[2014-10-26 13:10:21] DEBUG: UPnP: Received UPnP packet [from 192.168.1.116:54451] [socket 0x00000860]:
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
ST:upnp:rootdevice
MAN:"ssdp:discover"
MX:3
[2014-10-26 13:10:21] DEBUG: UPnP: Not replying to Service Type [upnp:rootdevice]
[2014-10-26 13:10:21] recvfrom ERROR: 10035
[2014-10-26 13:10:21] IPv6 is installed
[2014-10-26 13:10:21] Got Teredo Address: 2001:0:5ef5:79fb:c6e:25d0:4d72:abb7
[2014-10-26 13:10:21] DEBUG: UPnP: Received UPnP packet [from 192.168.1.1:1900] [socket 0x00000864]:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=120
ST: upnp:rootdevice
USN: uuid:ceb8b0f5-ef3e-4999-81c2-2bfff4235836::upnp:rootdevice
EXT:
SERVER: OpenWRT/OpenWrt/Barrier_Breaker__r42625_ UPnP/1.1 MiniUPnPd/1.8
LOCATION: http://192.168.1.1:5000/rootDesc.xml
OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01
01-NLS: 1
BOOTID.UPNP.ORG: 1
CONFIGID.UPNP.ORG: 1337
[2014-10-26 13:10:21] DEBUG: UPnP: Got a reply/notify event
[2014-10-26 13:10:21] UPnP: Found location from upnp notify: http://192.168.1.1:5000/rootDesc.xml
[2014-10-26 13:10:21] UPnP: Discovered host: http://192.168.1.1:5000/rootDesc.xml
[2014-10-26 13:10:21] recvfrom ERROR: 10035
[2014-10-26 13:10:21] NAT-PMP: Mapped TCP port 47152 -> 192.168.1.116:47152
[2014-10-26 13:10:21] NAT-PMP: Mapped UDP port 47152 -> 192.168.1.116:47152
[2014-10-26 13:10:21] NAT-PMP: Got external IP: 178.141.84.72
[2014-10-26 13:10:21] UPnP: Discovered new device: "WANConnectionDevice" http://192.168.1.1:5000/ctl/IPConn
[2014-10-26 13:10:21] UPnP: TCP port 47152 -> 192.168.1.116:47152 is already mapped. Not re-mapping.
[2014-10-26 13:10:21] UPnP: UDP port 47152 -> 192.168.1.116:47152 is already mapped. Not re-mapping.
[2014-10-26 13:10:21] UPnP: Getting external IP
[2014-10-26 13:10:22] UPnP: Got external IP: 178.141.84.72
[2014-10-26 13:10:22] recvfrom ERROR: 10035
[2014-10-26 13:10:26] DEBUG: UPnP: Received UPnP packet [from 192.168.1.116:54451] [socket 0x00000860]:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
LOCATION: http://192.168.1.116:47152
SERVER: Windows/6.2.9200 UPnP/1.1 uTorrent(client)(native)/342
NTS: ssdp:alive
ST: ut:client:service:pairing
USN: uuid:751ebf7a-fca2-e311-808a-6466b303312a
FRIENDLYNAME:WOOLLDO2
HH:PvFsytXdE_7oqyp6
[2014-10-26 13:10:26] DEBUG: UPnP: Got a reply/notify event
[2014-10-26 13:10:26] UPnP: Found location from upnp notify: http://192.168.1.116:47152
[2014-10-26 13:10:26] UPnP: Discovered host: http://192.168.1.116:47152
[2014-10-26 13:10:26] recvfrom ERROR: 10035
[2014-10-26 13:10:26] UPnP: The device "" is not a UPnP router (http://192.168.1.116:47152/)
[2014-10-26 13:10:26] UPnP: Device error "http://192.168.1.116:47152": (-2)
[2014-10-26 13:10:33] recvfrom ERROR: 10035
[2014-10-26 13:10:33] recvfrom ERROR: 10035
[2014-10-26 13:10:33] recvfrom ERROR: 10035
[2014-10-26 13:10:34] recvfrom ERROR: 10035
[2014-10-26 13:10:34] recvfrom ERROR: 10035
[2014-10-26 13:10:34] recvfrom ERROR: 10035
[2014-10-26 13:10:40] recvfrom ERROR: 10035
[2014-10-26 13:10:40] recvfrom ERROR: 10035
[2014-10-26 13:10:41] recvfrom ERROR: 10035
[2014-10-26 13:10:41] recvfrom ERROR: 10035
[2014-10-26 13:10:53] recvfrom ERROR: 10035
[2014-10-26 13:11:01] recvfrom ERROR: 10035
[2014-10-26 13:11:14] recvfrom ERROR: 10035
[2014-10-26 13:11:21] recvfrom ERROR: 10035
[2014-10-26 13:11:35] recvfrom ERROR: 10035
[2014-10-26 13:11:42] recvfrom ERROR: 10035
[2014-10-26 13:11:42] recvfrom ERROR: 10035
[2014-10-26 13:11:42] recvfrom ERROR: 10035
[2014-10-26 13:11:42] recvfrom ERROR: 10035
[2014-10-26 13:11:42] recvfrom ERROR: 10035
[2014-10-26 13:11:43] recvfrom ERROR: 10035
[2014-10-26 13:11:43] recvfrom ERROR: 10035
[2014-10-26 13:11:56] recvfrom ERROR: 10035
[2014-10-26 13:12:05] recvfrom ERROR: 10035
[2014-10-26 13:12:17] recvfrom ERROR: 10035

rootDesc.xml:
Code:
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>
urn:schemas-upnp-org:device:InternetGatewayDevice:1
</deviceType>
<friendlyName>OpenWRT router</friendlyName>
<manufacturer>OpenWRT</manufacturer>
<manufacturerURL>http://www.openwrt.org/</manufacturerURL>
<modelDescription>OpenWRT router</modelDescription>
<modelName>OpenWRT router</modelName>
<modelNumber>1</modelNumber>
<modelURL>http://www.openwrt.org/</modelURL>
<serialNumber>00000000</serialNumber>
<UDN>uuid:ceb8b0f5-ef3e-4999-81c2-2bfff4235836</UDN>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:Layer3Forwarding:1</serviceType>
<serviceId>urn:upnp-org:serviceId:Layer3Forwarding1</serviceId>
<controlURL>/ctl/L3F</controlURL>
<eventSubURL>/evt/L3F</eventSubURL>
<SCPDURL>/L3F.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANDevice:1</deviceType>
<friendlyName>WANDevice</friendlyName>
<manufacturer>MiniUPnP</manufacturer>
<manufacturerURL>http://miniupnp.free.fr/</manufacturerURL>
<modelDescription>WAN Device</modelDescription>
<modelName>WAN Device</modelName>
<modelNumber>20140923</modelNumber>
<modelURL>http://miniupnp.free.fr/</modelURL>
<serialNumber>00000000</serialNumber>
<UDN>uuid:ceb8b0f5-ef3e-4999-81c2-2bfff4235837</UDN>
<UPC>000000000000</UPC>
<serviceList>
<service>
<serviceType>
urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1
</serviceType>
<serviceId>urn:upnp-org:serviceId:WANCommonIFC1</serviceId>
<controlURL>/ctl/CmnIfCfg</controlURL>
<eventSubURL>/evt/CmnIfCfg</eventSubURL>
<SCPDURL>/WANCfg.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>WANConnectionDevice</friendlyName>
<manufacturer>MiniUPnP</manufacturer>
<manufacturerURL>http://miniupnp.free.fr/</manufacturerURL>
<modelDescription>MiniUPnP daemon</modelDescription>
<modelName>MiniUPnPd</modelName>
<modelNumber>20140923</modelNumber>
<modelURL>http://miniupnp.free.fr/</modelURL>
<serialNumber>00000000</serialNumber>
<UDN>uuid:ceb8b0f5-ef3e-4999-81c2-2bfff4235838</UDN>
<UPC>000000000000</UPC>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANIPConnection:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANIPConn1</serviceId>
<controlURL>/ctl/IPConn</controlURL>
<eventSubURL>/evt/IPConn</eventSubURL>
<SCPDURL>/WANIPCn.xml</SCPDURL>
</service>
</serviceList>
</device>
</deviceList>
</device>
</deviceList>
<presentationURL>http://192.168.1.1/</presentationURL>
</device>
</root>
Back to top
View user's profile Send private message Send e-mail
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1394

PostPosted: Mon Oct 27, 2014 4:56 pm    Post subject: Reply with quote

about the line
Code:
OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01

I think it is needed according to UDA v1.1 (UPnP device Architecture : http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf)
anyway you can remove it from source code...

Also I don't understand what is your problem. Everything seems to work fine.
Code:

[2014-10-26 13:10:21] DEBUG: UPnP: Got a reply/notify event
[2014-10-26 13:10:21] UPnP: Found location from upnp notify: http://192.168.1.1:5000/rootDesc.xml
[2014-10-26 13:10:21] UPnP: Discovered host: http://192.168.1.1:5000/rootDesc.xml
[2014-10-26 13:10:21] recvfrom ERROR: 10035
[2014-10-26 13:10:21] NAT-PMP: Mapped TCP port 47152 -> 192.168.1.116:47152
[2014-10-26 13:10:21] NAT-PMP: Mapped UDP port 47152 -> 192.168.1.116:47152
[2014-10-26 13:10:21] NAT-PMP: Got external IP: 178.141.84.72
[2014-10-26 13:10:21] UPnP: Discovered new device: "WANConnectionDevice" http://192.168.1.1:5000/ctl/IPConn
[2014-10-26 13:10:21] UPnP: TCP port 47152 -> 192.168.1.116:47152 is already mapped. Not re-mapping.
[2014-10-26 13:10:21] UPnP: UDP port 47152 -> 192.168.1.116:47152 is already mapped. Not re-mapping.
[2014-10-26 13:10:21] UPnP: Getting external IP
[2014-10-26 13:10:22] UPnP: Got external IP: 178.141.84.72

it means that UPnP IGD is well detected and working (UPnP: Got external IP: 178.141.84.72 ) but NAT-PMP is faster so the port got mapped using NAT-PMP before.
I think you can configure utorrent to disable either UPNP or NATPMP
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.