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 

is_rfc1918addr() in UPNP_GetValidIGD()

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



Joined: 16 Mar 2016
Posts: 1

PostPosted: Wed Mar 16, 2016 8:39 pm    Post subject: is_rfc1918addr() in UPNP_GetValidIGD() Reply with quote

I have a cascaded NAT situation at work and I'm aware that UPNP doesn't work well with this. However, it would be nice if MiniUPNP were able to work with just the closest cascaded NAT device, knowing that it would fail trying to get further out to the internet. This would allow computers on the deepest level to talk to computers one level up.

UPNP_GetValidIGD() specifically skips IGDs that return an address in a private network range via is_rfc1918addr(). I removed that check locally and it seems that UPNP operates as expected in this scenario. It can now negotiate with the closest of the cascaded NATs.

Now I'm sure that check was in there for a reason and I expect that now most likely something else might break. Do you know why that check is there?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1594

PostPosted: Thu Mar 17, 2016 11:16 am    Post subject: Reply with quote

see http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=1828
_________________
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.