wireguard
This commit is contained in:
parent
40a16d033c
commit
c52ef025d7
2 changed files with 16 additions and 0 deletions
|
|
@ -304,6 +304,21 @@
|
|||
};
|
||||
};
|
||||
|
||||
# wireguard
|
||||
networking.firewall = {
|
||||
# if packets are still dropped, they will show up in dmesg
|
||||
logReversePathDrops = true;
|
||||
# wireguard trips rpfilter up
|
||||
extraCommands = ''
|
||||
ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN
|
||||
ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN
|
||||
'';
|
||||
extraStopCommands = ''
|
||||
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN || true
|
||||
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN || true
|
||||
'';
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
|
|
|
|||
1
home.nix
1
home.nix
|
|
@ -86,6 +86,7 @@ let username = "clara"; in
|
|||
vdhcoapp
|
||||
inkscape
|
||||
prusa-slicer
|
||||
light
|
||||
] ++ (if x11mode then [
|
||||
arandr
|
||||
flameshot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue