diff options
| author | Mel <mel@rnrd.eu> | 2026-06-17 00:27:17 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-06-17 00:27:17 +0200 |
| commit | 997f5a88d6b08d4172cc759f32c314b5a843d81c (patch) | |
| tree | c09d26ea947c563565baf3b16e4b723075e2e2d3 /modules/foundation | |
| parent | a4f17c0cce27b6f05234edfb2d545848937484c7 (diff) | |
| download | network-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')
| -rw-r--r-- | modules/foundation/vpn.nix | 3 |
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 } ''; }; |
