summary refs log tree commit diff
path: root/modules/foundation/vpn.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-06-17 00:27:17 +0200
committerMel <mel@rnrd.eu>2026-06-17 00:27:17 +0200
commit997f5a88d6b08d4172cc759f32c314b5a843d81c (patch)
treec09d26ea947c563565baf3b16e4b723075e2e2d3 /modules/foundation/vpn.nix
parenta4f17c0cce27b6f05234edfb2d545848937484c7 (diff)
downloadnetwork-997f5a88d6b08d4172cc759f32c314b5a843d81c.tar.zst
network-997f5a88d6b08d4172cc759f32c314b5a843d81c.zip
Make VPN+Tunnel firewall chains work correctly when used in tandem
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules/foundation/vpn.nix')
-rw-r--r--modules/foundation/vpn.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/foundation/vpn.nix b/modules/foundation/vpn.nix
index 1a7524d..f4a5d21 100644
--- a/modules/foundation/vpn.nix
+++ b/modules/foundation/vpn.nix
@@ -83,6 +83,9 @@ in
           type filter hook forward priority 0; policy accept;
           iifname "${interface}" oifname "${cfg.externalInterface}" accept
           iifname "${cfg.externalInterface}" oifname "${interface}" ct state established,related accept
+
+          # drop vpn-sourced traffic headed anywhere but external
+          iifname "${interface}" drop
         }
       '';
     };