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_EXTERNAL_IP support "netmap"

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Feature Request
View previous topic :: View next topic  
Author Message
toto



Joined: 08 Feb 2016
Posts: 3

PostPosted: Mon Feb 08, 2016 11:14 pm    Post subject: MULTIPLE_EXTERNAL_IP support "netmap" Reply with quote

listening_ip=192.168.1.1/24 10.10.10.1/24
listening_ip=192.168.2.1/24 10.10.10.1/24
listening_ip=192.168.3.1/24 10.10.10.1/24

thx
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue Feb 09, 2016 8:19 am    Post subject: Reply with quote

I don't understand...
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
toto



Joined: 08 Feb 2016
Posts: 3

PostPosted: Tue Feb 09, 2016 12:30 pm    Post subject: Reply with quote

sorry =]

iptables get netmap:
http://www.netfilter.org/documentation/HOWTO/netfilter-extensions-HOWTO-4.html#ss4.4

"that allows you create a static 1:1 mapping of the network address, while keeping host addresses intact.

For example, if you want to alter the destination of incoming connections from 1.2.3.0/24 to 5.6.7.0/24, you can do as follows :

# iptables -t nat -A PREROUTING -d 1.2.3.0/24 -j NETMAP --to 5.6.7.0/24
"
As I see, miniupnpd only support many to one ip.
Wanna many to many.
All 'one' bits in the mask are filled in from the new 'address'. All bits that are zero in the mask are filled in from the original address.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue Feb 09, 2016 1:38 pm    Post subject: Reply with quote

OK. I don't see how to support that with UPnP IGD...
you don't need UPNP for that anyway.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
toto



Joined: 08 Feb 2016
Posts: 3

PostPosted: Tue Feb 09, 2016 2:40 pm    Post subject: Reply with quote

I need to improve my english =/

You don't need support iptables netmap in UPnP IGD.
Only the logic.
In miniupnpd.c,
* When MULTIPLE_EXTERNAL_IP is enabled, the ip address of the
* external interface associated with the lan subnet follows.
* ex : 192.168.1.1/24 81.21.41.11

but if we get more then one ip address in the external interface.
For example - 255, than:
192.168.1.1/24 81.21.41.1/24
and ip 192.168.1.40 will be out in 81.21.41.40, not 81.21.41.1

thx
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue Feb 09, 2016 3:33 pm    Post subject: Reply with quote

What's the point ?

Why do you need UPnP IGD with such setup ?
_________________
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 Feature Request 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.