magpie/wireguard: remove hooks with bad nft syntax

This commit is contained in:
Asmir A 2025-05-25 20:50:30 +02:00
parent a64d8bfdc9
commit 3380128587
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -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 = [