I have a Debian router, and I'd like to set up Full Cone NAT.
I'm using nftables and miniupnpd.
My current config (Restricted Cone NAT):
table inet nat {
chain postrouting {
type nat hook postrouting priority srcnat;
ip saddr { 10.2.0.0/16 } oif "ens18" masquerade
}
}
enable_natpmp=yes
enable_upnp=yes
postrouting_miniupnpd
secure_mode=yes
system_uptime=yes
uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
force_igd_desc_v1=no
listening_ip=vlan0128 vlan0015 vlan0081
ext_ifname=ens18
I have seen this similar question but I'm not sure if I should follow the answers since I'm not using iptables
Full Cone NAT
. This is, to accept any incoming connection to that port and forward it to the host that requested, regardless of its origin.