From 33801285878c428e8cd82d0596c228da69c06fdb Mon Sep 17 00:00:00 2001 From: Asmir A Date: Sun, 25 May 2025 20:50:30 +0200 Subject: [PATCH] magpie/wireguard: remove hooks with bad nft syntax --- magpie/configuration.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/magpie/configuration.nix b/magpie/configuration.nix index a7c47a5..3b3b48d 100644 --- a/magpie/configuration.nix +++ b/magpie/configuration.nix @@ -366,13 +366,13 @@ # 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.nftables}/bin/nft add rule ip nat POSTROUTING oifname "eth0" ip saddr 10.100.0.0/24 counter masquerade - ''; + #postSetup = '' + # ${pkgs.nftables}/bin/nft add rule ip nat POSTROUTING oifname "eth0" ip saddr 10.100.0.0/24 counter masquerade + #''; # This undoes the above command, TODO fix command below to be more specific - postShutdown = '' - ${pkgs.nftables}/bin/nft flush table ip nat - ''; + #postShutdown = '' + # ${pkgs.nftables}/bin/nft flush table ip nat + #''; privateKeyFile = config.sops.secrets."wg_privkey".path; peers = [