fix firewall config
This commit is contained in:
parent
d631c044a1
commit
1b9572e04d
|
@ -157,17 +157,8 @@
|
||||||
|
|
||||||
# wireguard settings
|
# wireguard settings
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
# if packets are still dropped, they will show up in dmesg
|
allowedUDPPorts = [ 51820 ];
|
||||||
logReversePathDrops = true;
|
enable = true;
|
||||||
# wireguard trips rpfilter up
|
|
||||||
extraCommands = ''
|
|
||||||
ip46tables -t raw -I nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN
|
|
||||||
ip46tables -t raw -I nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN
|
|
||||||
'';
|
|
||||||
extraStopCommands = ''
|
|
||||||
ip46tables -t raw -D nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN || true
|
|
||||||
ip46tables -t raw -D nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN || true
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|
Loading…
Reference in New Issue