I know this may be more a question for miniupnp comunity, but I didn’t find any forum.
I run multiple F38 servers as routers also on different locations with many of them having one Ubuntu VM in VirtualBox that needs dynamically assigned ports to be forwarded. Suggested use is with miniupnpd, but I don’t use standard firewall on my machines, rather my custom one setup in the same manner on each machine, and I don’t want to change it.
Is there a way to define which table should miniupnpd add? or does miniupnpd add tables directly via iptables/nft or via firewall ctl?
I need to add entries into PREROUTING for DNAT and 3TCP to ACCEPT
There seems to be some configuration in miniupnpd.conf, but I’m not sure if this is what I’m looking for, and config seems to be only for nft. I haven’t installed miniupnpd yet, before I know if it would work, and I don’t want to messup things. I have it working nicely on one location with openWRT router and multiple clients behind
# table names for netfilter nft. Default is "filter" for both #upnp_table_name= #upnp_nat_table_name= # chain names for netfilter and netfilter nft # netfilter : default are MINIUPNPD, MINIUPNPD, MINIUPNPD-POSTROUTING # netfilter nft : default are miniupnpd, prerouting_miniupnpd, postrouting_miniupnpd #upnp_forward_chain=forwardUPnP #upnp_nat_chain=UPnP #upnp_nat_postrouting_chain=UPnP-Postrouting
The other option is to write a deamon that listens for upnpc client and adds/removes ports manually since I don’t need a any other functionality, it shouldn’t be too hard?