View previous topic :: View next topic |
Author |
Message |
pgk
Joined: 28 Apr 2011 Posts: 12
|
Posted: Thu Apr 28, 2011 1:48 pm Post subject: miniupnpd not supporting for Multiple LANs |
|
|
Hi,
I have Linux router with miniupnpd integrated for feature UPnP.
Router is having multiple LAN interfaces.
I am doing basic testing with miniupnpd whether my router is getting detected or not in the "My Network Connections" in two windows PCs connected to LAN interfaces.
But I am seeing in only one PC is detecting the router.
i am running with the below command
./miniupnpd -f miupnpd.conf -i eth0 -a 192.168.1.1 -a 192.168.3.1
Only host in network 192.168.1.0 is detecting.
other host 192.168.3.0 is wireless.
Thanks,
PGK _________________ Best Regards,
PGK |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Thu Apr 28, 2011 7:27 pm Post subject: |
|
|
I see you are using both -f option to specify .conf file and -a options.
Please check the content of the conf file.
Also, please tell us what is the output of ./miniupnpd launched with -d option at startup. It should tell on which interface it is listening, etc. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
pgk
Joined: 28 Apr 2011 Posts: 12
|
Posted: Fri Apr 29, 2011 11:11 am Post subject: |
|
|
Hi,
Yes,I got it working now.
I did not configure the other windows PC for UPnP so it was not detecting my router.It is working now.
But still i have one more query.I have one test case "Add/delete dynamic UPnP TCP/UDP port mapping for specific IP source address" for action AddPortMapping.
I always saw it is wildcard port mappings are created and test case is failing.
Please suggest me code changes or provide me patch.
I have your latest release ver 1.5 release SDK "miniupnpd-1.5.tar.gz" _________________ Best Regards,
PGK |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Fri Apr 29, 2011 12:07 pm Post subject: |
|
|
pgk wrote: |
[...]
But still i have one more query.I have one test case "Add/delete dynamic UPnP TCP/UDP port mapping for specific IP source address" for action AddPortMapping.
I always saw it is wildcard port mappings are created and test case is failing.
Please suggest me code changes or provide me patch.
[...] |
specifying a "RemoteHost" is not supported by miniupnpd. It should answer with the error "726 - RemoteHostOnlySupportsWildcard" _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
pgk
Joined: 28 Apr 2011 Posts: 12
|
Posted: Fri Apr 29, 2011 2:28 pm Post subject: |
|
|
Hi,
I want to know specifying a "RemoteHost" is not there as part of UPnP functional specification also ?
I also found out there is one software test tool "CDROUTER" by Qacafe which is specifying this test case.Below link provides info
http://www.qacafe.com/static/6_5/test-summary/test-summary.htm#s_upnp
Please share me some info with real time why this above test case scenario shouldn't exist ? _________________ Best Regards,
PGK |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Sat Apr 30, 2011 7:50 am Post subject: |
|
|
pgk wrote: | Hi,
I want to know specifying a "RemoteHost" is not there as part of UPnP functional specification also ?
|
please read the specification. Supporting specific RemoteHost is not mandatory.
I never told the "test case scenario shouldn't exist ".
It is just testing a feature that is not supported by MiniUPnPd. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
pgk
Joined: 28 Apr 2011 Posts: 12
|
Posted: Sat Apr 30, 2011 10:11 am Post subject: |
|
|
Hi,
I am working on doing the code changes for this test case.
Could you please suggest some ideas or any iptables library function call need to be added in the code ? _________________ Best Regards,
PGK |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Fri May 13, 2011 4:37 pm Post subject: |
|
|
could you please make the test again with the latest version of miniupnpd and by enabling the #define UPNP_STRICT line in config.h ? _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
pgk
Joined: 28 Apr 2011 Posts: 12
|
Posted: Mon May 16, 2011 6:55 am Post subject: |
|
|
Hi,
I am not able build latest version SDK.Below error I am getting
make: *** No rule to make target `upnpurns.h', needed by `upnpdescgen.o'. Stop.
I have taken miniupnpd-1.5.20110515.tar.gz SDK _________________ Best Regards,
PGK |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
|
Back to top |
|
|
pgk
Joined: 28 Apr 2011 Posts: 12
|
Posted: Mon May 16, 2011 12:16 pm Post subject: |
|
|
Hi,
Test case fails "Add/delete dynamic UPnP TCP/UDP port mapping for specific IP source address"
But initially it says port mapping is accepted. While deleting only it throws error.
This is with latest code miniupnpd-1.5.20110516.tar.gz and enabled #define UPNP_STRICT line in config.h.
# ./miniupnpd -f miniupnpd.conf -i eth0 -a 192.168.1.1 -d
miniupnpd[1892]: system uptime is 563 seconds
miniupnpd[1892]: HTTP listening on port 42466
miniupnpd[1892]: Listening for NAT-PMP traffic on port 5351
miniupnpd[1892]: SSDP M-SEARCH from 192.168.1.100:11629 ST: urn:schemas-upnp-org:device:InternetGatewayDevice:1
miniupnpd[1892]: Single search found
miniupnpd[1892]: SSDP Announce 419 bytes to 192.168.1.100:11629 ST: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=120
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:fc4ec57e-b051-11db-88f8-0060085db3f6::urn:schemas-upnp-org:device:InternetGatewayDevice:1
EXT:
SERVER: Linux/2.6.35.6-45.fc14.i686 UPnP/1.0 MiniUPnPd/1.5
LOCATION: http://192.168.1.1:42466/rootDesc.xml
OPT: "http://schemas.upnp.org/upnp/1/0/";
01-NLS: 1
BOOTID.UPNP.ORG: 1
CONFIGID.UPNP.ORG: 1337
miniupnpd[1892]: HTTP connection from 192.168.1.100:11630
miniupnpd[1892]: HTTP REQUEST : GET /rootDesc.xml (HTTP/1.1)
miniupnpd[1892]: HTTP connection from 192.168.1.100:11631
miniupnpd[1892]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[1892]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
miniupnpd[1892]: AddPortMapping: ext port 49152 to 192.168.1.100:49152 protocol UDP for: non-wildcard-mapping
miniupnpd[1892]: UPnP permission rule 1 matched : port mapping accepted
miniupnpd[1892]: redirecting port 49152 to 192.168.1.100:49152 protocol UDP for: non-wildcard-mapping
miniupnpd[1892]: SSDP M-SEARCH from 192.168.1.100:11632 ST: urn:schemas-upnp-org:device:InternetGatewayDevice:1
miniupnpd[1892]: Single search found
miniupnpd[1892]: SSDP Announce 419 bytes to 192.168.1.100:11632 ST: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=120
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:fc4ec57e-b051-11db-88f8-0060085db3f6::urn:schemas-upnp-org:device:InternetGatewayDevice:1
EXT:
SERVER: Linux/2.6.35.6-45.fc14.i686 UPnP/1.0 MiniUPnPd/1.5
LOCATION: http://192.168.1.1:42466/rootDesc.xml
OPT: "http://schemas.upnp.org/upnp/1/0/";
01-NLS: 1
BOOTID.UPNP.ORG: 1
CONFIGID.UPNP.ORG: 1337
miniupnpd[1892]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#DeletePortMapping
miniupnpd[1892]: Returning UPnPError 726: RemoteHostOnlySupportsWildcard _________________ Best Regards,
PGK |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Mon May 16, 2011 12:34 pm Post subject: |
|
|
NewRemoteHost argument is not checked in AddPortMapping... I need to fix this. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
|
Back to top |
|
|
|