From c5155d31170d25b985a4802050f695cdfc3faf62 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Wed, 6 Nov 2024 02:58:05 -0600 Subject: [PATCH] wireguard network rewiring fix --- modules/services/wireguard.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/wireguard.nix b/modules/services/wireguard.nix index 7a64647..45327fe 100644 --- a/modules/services/wireguard.nix +++ b/modules/services/wireguard.nix @@ -22,10 +22,10 @@ in ips = [ "10.100.0.1/24" ]; listenPort = port; postSetup = '' - ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eth0 -j MASQUERADE + ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o enp2s0 -j MASQUERADE ''; postShutdown = '' - ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.100.0.0/24 -o eth0 -j MASQUERADE + ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.100.0.0/24 -o enp2s0 -j MASQUERADE ''; privateKeyFile = config.sops.secrets."wireguard/private".path; peers = [