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
|
# 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
|
# For this to work you have to set the dnsserver IP of your router (or dnsserver of choice) in your clients
|
||||||
postSetup = ''
|
#postSetup = ''
|
||||||
${pkgs.nftables}/bin/nft add rule ip nat POSTROUTING oifname "eth0" ip saddr 10.100.0.0/24 counter masquerade
|
# ${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
|
# This undoes the above command, TODO fix command below to be more specific
|
||||||
postShutdown = ''
|
#postShutdown = ''
|
||||||
${pkgs.nftables}/bin/nft flush table ip nat
|
# ${pkgs.nftables}/bin/nft flush table ip nat
|
||||||
'';
|
#'';
|
||||||
privateKeyFile = config.sops.secrets."wg_privkey".path;
|
privateKeyFile = config.sops.secrets."wg_privkey".path;
|
||||||
|
|
||||||
peers = [
|
peers = [
|
||||||
|
Loading…
Reference in New Issue
Block a user