From 67e8c86a87c0eb884d82e3edbaf70a9fc87d97cb Mon Sep 17 00:00:00 2001 From: Sky Hearn Date: Fri, 8 Mar 2024 03:24:51 +0000 Subject: [PATCH] Change iptables to Insert instead of append. --- configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 4514257..baa9f35 100644 --- a/configuration.nix +++ b/configuration.nix @@ -56,7 +56,7 @@ # 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.100.0.0/24 -o eno4 -j MASQUERADE + ${pkgs.iptables}/bin/iptables -t nat -I POSTROUTING -s 10.100.0.0/24 -o eno4 -j MASQUERADE ''; # This undoes the above command