← Linux Administration learning pathLinux Administration · Module 8 of 10
Security and firewalls
Harden Linux servers.
📖 Key ideas
- Use SSH keys; disable password login and root login.
- Firewalls: ufw (Ubuntu), firewalld (RHEL).
- fail2ban blocks repeated failed logins.
- Keep packages updated; remove unused services.
- SELinux/AppArmor add mandatory access controls.
💡 Real-life example: Server hardening is locking every door and window except the one you actually use.
ufwUncomplicated Firewall
fail2banBans IPs after failed logins
SSH keyKey-based authentication
SELinuxMandatory access control system