Add IPv4 port forwards and masquerade to host_firewall in an ip host_nat table

This commit is contained in:
2026-10-07 21:10:35 +00:00
parent c9d2334906
commit 9e2e6cbb99
3 changed files with 31 additions and 2 deletions
+5
View File
@@ -26,6 +26,11 @@ firewall:
ifaces: {}
v4: {}
v6: {}
# IPv4 port forwards: name -> {daddr, to, tcp: ports, udp: ports}, ports as in
# the maps above. Forwarded traffic passes the forward hook, not input.
dnat: {}
# IPv4 source NAT: name -> nft match, e.g. 'oifname "vmbr0"'.
masquerade: {}
ssh_rate_limit: "10/minute burst 5 packets"
# EU-27 plus CH, NO, GB, IS, LI (ipdeny country codes). Empty leaves the geo
# ports to the admin set; a load peaks at about 60 MB of kernel memory, too much for a 1 GB host.