feature request: UPNP interface list support

feature request: UPNP interface list support

we have multihoming setup and each wan interface has NAT enabled.

I would request if you can add interface-list support to UPNP server?

for example we could setup LAN as internal and WAN interface-list as external and it would add firewall rules with interface-lists

Thanks

You can still use the interface-list within the firewall rules,
and manually configure the multiple WAN within the UPnP.
I don’t think you change, add, remove WAN continuosly…

UPNP is simply a service provided by the router.
So you need to decide which IPs, interfaces etc should have access to the service!
As rexentended states, its all capable within firewall rules, using a combination of interface lists and firewall address lists as required.

And does it do anything useful? It seems that it just randomly(?) picks one, so it’s not very useful.

¯_(ツ)_/¯ is the OP request…

i dont request random interface selection. we have 5 wan interfaces currently (and it is increasing). all of them are in WAN interface list.

I just want upnp service to use interface list instead of interface names. neat.

ports should be opened on each and every WAN interface, so load-balancing could work with UPNP

@rextended: I believe that OP wants something that can actually be useful. Current UPnP adds dstnat rules with in-interface=. If it was possible to choose address list as external interface, it could add rules with in-interface-list=, which would make port forwarding work from all. So at least at first sight it could make sense.

One problem I see is that client can also get external address from UPnP, and I don’t know if there’s any support for multiple addresses. If not, it hurts the usefulness. If UPnP client opens port, gets external address and sends it to remote party, so that it can connect to it, and it will be just one address, then possibility to have incoming connections using other WANs doesn’t help anything.