magpie/wireguard: remove hooks with bad nft syntax
This commit is contained in:
parent
a64d8bfdc9
commit
3380128587
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user