From 1e7b7e168e4e6d425441965056592d0fac6faefb Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Wed, 2 Oct 2024 09:18:41 +0200 Subject: [PATCH] fix(services -> wireguard): Fixed masquerade interface name --- services/wireguard/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/wireguard/default.nix b/services/wireguard/default.nix index 1fc31bd..99166b1 100644 --- a/services/wireguard/default.nix +++ b/services/wireguard/default.nix @@ -20,12 +20,12 @@ # This allows the wireguard server to route your traffic to the internet and hence be like a VPN # For this to work you have to set the dnsserver IP of your router (or dnsserver of choice) in your clients postSetup = '' - ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE + ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o ens3 -j MASQUERADE ''; # This undoes the above command postShutdown = '' - ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE + ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.8.0.0/24 -o ens3 -j MASQUERADE ''; # Path to the private key file.