NixOS-Config/system/desktop/firewall.nix

13 lines
273 B
Nix
Raw Normal View History

2024-09-23 16:22:01 -04:00
{outputs, ...}: {
2024-08-24 22:16:51 -04:00
# Networking settings
networking = {
# Enable firewall
firewall = {
allowPing = false;
extraInputRules = ''
2024-09-23 16:22:01 -04:00
ip saddr { ${outputs.ips.server}, ${outputs.ips.wgSpan}.1 } accept comment "Accept Server"
2024-08-24 22:16:51 -04:00
'';
};
};
}