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 

miniupnpd not supporting for Multiple LANs

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



Joined: 28 Apr 2011
Posts: 12

PostPosted: Thu Apr 28, 2011 1:48 pm    Post subject: miniupnpd not supporting for Multiple LANs Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu Apr 28, 2011 7:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
pgk



Joined: 28 Apr 2011
Posts: 12

PostPosted: Fri Apr 29, 2011 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Fri Apr 29, 2011 12:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
pgk



Joined: 28 Apr 2011
Posts: 12

PostPosted: Fri Apr 29, 2011 2:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sat Apr 30, 2011 7:50 am    Post subject: Reply with quote

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.
pgk wrote:
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 ?

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
View user's profile Send private message Visit poster's website
pgk



Joined: 28 Apr 2011
Posts: 12

PostPosted: Sat Apr 30, 2011 10:11 am    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Fri May 13, 2011 4:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
pgk



Joined: 28 Apr 2011
Posts: 12

PostPosted: Mon May 16, 2011 6:55 am    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon May 16, 2011 9:33 am    Post subject: Reply with quote

oops Sad sorry Sad
Forgot to include a new file.
miniupnpd-1.5.20110516.tar.gz
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
pgk



Joined: 28 Apr 2011
Posts: 12

PostPosted: Mon May 16, 2011 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon May 16, 2011 12:34 pm    Post subject: Reply with quote

NewRemoteHost argument is not checked in AddPortMapping... I need to fix this.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed May 18, 2011 10:31 pm    Post subject: Reply with quote

please check with this fixed version :
miniupnpd-1.5.20110519.tar.gz
NewRemoteHost value is now checked in AddPortMapping method if UPNP_STRICT is defined.
_________________
Main miniUPnP author.
https://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.