ooknet/modules/nixos/base/security/firewall.nix
2024-10-29 16:42:39 +11:00

14 lines
180 B
Nix

{
networking.firewall = {
enable = true;
allowedTCPPorts = [
22 # SSH
80
443
];
# dont respond to icmpv4 pings.
allowPing = false;
};
}