refactor(wireguard): set checkReversePath to loose instead of false

This commit is contained in:
2026-03-21 16:45:09 +01:00
parent 4e9ffcf6bd
commit 9a8090dac2

View File

@@ -1,9 +1,13 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
networking.firewall.checkReversePath = false; # protonvpn uses wireguard tunnels, which break strict reverse path filtering
# because packets arrive on the tunnel interface but may be routed back differently.
# "loose" checks that the source is routable through *any* interface (not necessarily
# the same one), which is sufficient for wireguard while still preventing IP spoofing.
networking.firewall.checkReversePath = "loose";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wireguard-tools
protonvpn-gui protonvpn-gui
]; ];
} }