diff options
| -rw-r--r-- | modules/router.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/router.nix b/modules/router.nix index f920e8a..3c69445 100644 --- a/modules/router.nix +++ b/modules/router.nix @@ -82,6 +82,14 @@ let services.avahi.publish.hinfo = true; services.avahi.publish.userServices = true; + services.miniupnpd.enable = true; + services.miniupnpd.externalInterface = ""; + services.miniupnpd.internalIPs = [ + "lan-vport" + "dragon-vport" + "servers-vport" + ]; + networking.interfaces.eno1 = {}; networking.interfaces.eno2 = {}; networking.interfaces.wan-vport = { @@ -337,6 +345,16 @@ let meta nfproto ipv6 oifname {"mullvad"} counter masquerade } } + + table inet miniupnpd { + chain miniupnpd {} + chain prerouting_miniupnpd { + type nat hook prerouting priority dstnat; policy accept; + } + chain postrouting_miniupnpd { + type nat hook postrouting priority srcnat; policy accept; + } + } ''; }; in { |
