mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/plover: improve firewall settings for Wireguard service
This commit is contained in:
parent
316602a35d
commit
29d990f33c
@ -16,7 +16,16 @@ in
|
||||
{
|
||||
environment.systemPackages = [ pkgs.wireguard-tools ];
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ wireguardPort ];
|
||||
networking.firewall = {
|
||||
# Allow the UDP traffic for the Wireguard service.
|
||||
allowedUDPPorts = [ wireguardPort ];
|
||||
|
||||
# Accept the traffic from the Wireguard interface.
|
||||
trustedInterfaces = [ wireguardIFName ];
|
||||
|
||||
# IP forwarding for specific interfaces.
|
||||
filterForward = true;
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
wait-online.ignoredInterfaces = [ wireguardIFName ];
|
||||
|
Loading…
Reference in New Issue
Block a user