Files
nixos-configuration/hosts/pi4/security/firewall.nix

18 lines
259 B
Nix
Raw Normal View History

{ common, ... }:
{
networking = {
firewall = {
enable = true;
allowedTCPPorts = [
80
443
];
extraInputRules = ''
ip saddr ${common.localIpRange} accept
'';
};
nftables.enable = true;
};
}