security: harden lazyworkhorse with firewall, fail2ban, SSH hardening #28
@@ -314,9 +314,9 @@
|
|||||||
|
|
||||||
# Firewall - default deny, explicit allow
|
# Firewall - default deny, explicit allow
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
# Enable firewall with default deny policy (NixOS firewall denies all by default)
|
||||||
enable = true;
|
enable = true;
|
||||||
allowPing = true;
|
allowPing = true;
|
||||||
defaultAllow = false;
|
|
||||||
|
|
||||||
# Only essential ports exposed to internet
|
# Only essential ports exposed to internet
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
|
|||||||
Reference in New Issue
Block a user