security: harden lazyworkhorse with firewall, fail2ban, SSH hardening #27
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/server-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Server is exposed to internet with:
Suspected cause of lag: unrestricted connections, possible scanning/brute-force attempts.
Solution
1. Firewall (default deny)
2. Fail2ban (automatic IP banning)
3. SSH hardening
4. Kernel network hardening
5. ai-worker restricted sudo for security audits
Whitelisted commands for automated security checks:
iptables -L -n -v,iptables -Sstatus,get * bannedjournalctl -t kernel,-u fail2ban,-u firewallsshd -T(config verification)docker ps,docker inspectss -tlnp,cat /proc/net/tcpSecurity: No deployment commands, no shell access, no ALL command - principle of least privilege.
Ports to Review
Currently blocked (commented) - uncomment if public access needed:
Deployment
Verification
Related
Hermes referenced this pull request2026-05-03 08:58:30 +00:00
Pull request closed