security: harden lazyworkhorse with firewall, fail2ban, SSH hardening #28

Merged
gortium merged 11 commits from feature/server-hardening-clean into master 2026-05-03 09:11:58 +00:00
4 changed files with 323 additions and 2 deletions
Showing only changes of commit 9b1f467db9 - Show all commits

View File

@@ -314,9 +314,9 @@
# Firewall - default deny, explicit allow
networking.firewall = {
# Enable firewall with default deny policy (NixOS firewall denies all by default)
enable = true;
allowPing = true;
defaultAllow = false;
# Only essential ports exposed to internet
allowedTCPPorts = [