View previous topic :: View next topic |
Author |
Message |
WhiteD
Joined: 26 Jun 2008 Posts: 3
|
Posted: Fri Jun 27, 2008 10:44 am Post subject: Multiple interface forwarding |
|
|
Hi
Can you add possibility to add more than one WAN interface in config? I have FreeBSD (pf) gateway with two physical interfaces (not an alias) and i wish that rdr rules to be created both for first and second WAN.
Sorry for my bad english. |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Sat Jun 28, 2008 11:29 am Post subject: Re: Multiple interface forwarding |
|
|
WhiteD wrote: | Hi
Can you add possibility to add more than one WAN interface in config? I have FreeBSD (pf) gateway with two physical interfaces (not an alias) and i wish that rdr rules to be created both for first and second WAN. |
How to know on which of the 2 interfaces rdr rules should be created ?
Also which IP should return the UPNP function "GetEXternalIPAddress" if there is 2 of them _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
tbnh
Joined: 31 Jul 2008 Posts: 1
|
Posted: Thu Jul 31, 2008 9:56 am Post subject: as variant... |
|
|
1. Is it possible to run two or more instances of miniupnpd (with different uuids) ? And clients will choose which IGD to use...
2. Or maybe possible to make rules more flexible, so that administrator can add some logic to them... ((a) configurable conditions + (b) ability to add more rules per mapping (with iface1, iface2, ...))
PS. I`m sorry about my english. ( |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Thu Jul 31, 2008 10:07 am Post subject: Re: as variant... |
|
|
tbnh wrote: | 1. Is it possible to run two or more instances of miniupnpd (with different uuids) ? And clients will choose which IGD to use... |
That could be possible. But I never tested...
tbnh wrote: | 2. Or maybe possible to make rules more flexible, so that administrator can add some logic to them... ((a) configurable conditions + (b) ability to add more rules per mapping (with iface1, iface2, ...)) |
that will currently require some big change in the code _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
andr1y
Joined: 22 Apr 2013 Posts: 2
|
Posted: Mon Apr 22, 2013 5:54 pm Post subject: Re: as variant... |
|
|
Hello, I have also two external interfaces. I need to created for them same rule of PF |
|
Back to top |
|
|
andr1y
Joined: 22 Apr 2013 Posts: 2
|
Posted: Mon Apr 22, 2013 6:03 pm Post subject: Re: as variant... |
|
|
if so run - /usr/local/sbin/miniupnpd -f /usr/local/etc/miniupnpd.conf -i vlan783 -i vlan345 then creates a rule for only one interface
created rule -
rdr pass quick on vlan345 inet proto tcp from any to any port = 29757 keep state label "NAT-PMP 29757 tcp" rtable 0 -> 10.1.70.111 port 29757
need to created two rules -
rdr pass quick on vlan783 inet proto tcp from any to any port = 29757 keep state label "NAT-PMP 29757 tcp" rtable 0 -> 10.1.70.111 port 29757
rdr pass quick on vlan345 inet proto tcp from any to any port = 29757 keep state label "NAT-PMP 29757 tcp" rtable 0 -> 10.1.70.111 port 29757 |
|
Back to top |
|
|
c0d3ki113r Guest
|
Posted: Tue Sep 27, 2022 4:06 am Post subject: |
|
|
Hi there,
I have the exact same problem.
I have 2 WAN interfaces eth1 and wg0 both having 2 different public IPs.
I have 2 isolated LANs 192.168.10.0/24 and 192.168.11.0/24 respectively going out using WAN eth1 and WAN wg0.
Is anything in the configuration I could use to specify a second ext_if to use for a second LAN network?
Basically it seems I need the equivalent of 2 instances of miniupnpd running for opening ports from hosts of a given LAN on the corresponding WAN interface. In that case GetEXternalIPAddress would return the proper interface for each network.
The configuration explains well how to use a specific WAN IP if there are multiple IPs on the WAN interface, but I don't see anything in case there are multiple WAN interfaces.
Thanks for the help. |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Sat Oct 01, 2022 11:32 am Post subject: |
|
|
c0d3ki113r wrote: | Hi there,
I have the exact same problem.
I have 2 WAN interfaces eth1 and wg0 both having 2 different public IPs.
I have 2 isolated LANs 192.168.10.0/24 and 192.168.11.0/24 respectively going out using WAN eth1 and WAN wg0.
Is anything in the configuration I could use to specify a second ext_if to use for a second LAN network?
Basically it seems I need the equivalent of 2 instances of miniupnpd running for opening ports from hosts of a given LAN on the corresponding WAN interface. In that case GetEXternalIPAddress would return the proper interface for each network.
The configuration explains well how to use a specific WAN IP if there are multiple IPs on the WAN interface, but I don't see anything in case there are multiple WAN interfaces.
Thanks for the help. |
you should build with the MULTIPLE_EXTERNAL_IP option enabled. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
c0d3ki113r Guest
|
Posted: Mon Oct 03, 2022 4:52 am Post subject: |
|
|
Thanks for the answer.
I've seen that once built with MULTIPLE_EXTERNAL_IP, we can specify the outgoing WAN IP to use for a specific LAN which is exactly what I need.
So my config would be (with for example 1.2.3.4 and 4.3.2.1 being my 2 WAN IPs):
listening_ip=192.168.10.1/24 1.2.3.4
listening_ip=192.168.11.1/24 4.3.2.1
The bit I'm not sure about is what to set in that case for the ext_ifname config parameter as it seem to only take one physical interface.
Today i've set it with ext_ifname=eth1 but I'm not sure how to add wg0 interface as well.
Thoughts?
Merci ! |
|
Back to top |
|
|
|