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 

Multiple Router Issue #2: cascaded routers

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



Joined: 21 Jan 2016
Posts: 7
Location: Vermont

PostPosted: Thu Jan 21, 2016 2:06 pm    Post subject: Multiple Router Issue #2: cascaded routers Reply with quote

A second issue I've encountered is installations where our device is connected to a router which is in turn connected to another router. For example:

Our device (192.168.1.x)
|
V
Router 1 (192.168.1.1 internal)
Router 1 (10.0.0.x external)
|
V
Router 2 (10.0.0.1 internal)
Router 2 (wan address external)
|
V
Internet

In this scenario, is there any reasonable way to
1) Figure out the topology
2) Set up ports through both routers

Any help, suggestions, guidance, or sympathy greatly appreciated.
[/list]
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu Jan 21, 2016 3:48 pm    Post subject: Reply with quote

This setup is clearly out of IGD spec scope.

see http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=16
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
pbft



Joined: 21 Jan 2016
Posts: 7
Location: Vermont

PostPosted: Thu Jan 21, 2016 3:55 pm    Post subject: Reply with quote

miniupnp wrote:
This setup is clearly out of IGD spec scope.

see http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=16


I expected that - thanks for the link. Have to chew on that for a while. I suppose if all the gateway devices have non-routable wan addresses, I could at least alert the user that they're likely behind a second router and suggest that they connect to the upstream router instead. Better than throwing up our hands and quitting.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu Jan 21, 2016 4:06 pm    Post subject: Reply with quote

You could also use the router which IP address is the default gateway...
https://github.com/miniupnp/libnatpmp/blob/master/getgateway.c
_________________
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 -> miniupnpc 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.