View previous topic :: View next topic |
Author |
Message |
toto
Joined: 08 Feb 2016 Posts: 3
|
Posted: Mon Feb 08, 2016 11:14 pm Post subject: MULTIPLE_EXTERNAL_IP support "netmap" |
|
|
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 |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
|
Back to top |
|
 |
toto
Joined: 08 Feb 2016 Posts: 3
|
Posted: Tue Feb 09, 2016 12:30 pm Post subject: |
|
|
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 |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
Posted: Tue Feb 09, 2016 1:38 pm Post subject: |
|
|
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 |
|
 |
toto
Joined: 08 Feb 2016 Posts: 3
|
Posted: Tue Feb 09, 2016 2:40 pm Post subject: |
|
|
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 |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
Posted: Tue Feb 09, 2016 3:33 pm Post subject: |
|
|
What's the point ?
Why do you need UPnP IGD with such setup ? _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
|