Harden infrastructure security.
Automatic intrusion blocking — a hardened, production-ready configuration out of the box.
fail2ban watches the logs of your services and automatically bans, through the firewall, the IP addresses that pile up failed authentication attempts. It is the first line of defence — simple and proven — against brute-force attacks on SSH and exposed services.
This template goes beyond the default install: it deploys a production-hardened configuration (tuned detection windows and ban durations, log reading via systemd, SSH protection enabled from the start). Lightweight and with no web interface, it installs in seconds and protects your server immediately — ideally as a complement to CrowdSec and a hardened bastion.
Automatically block brute-force attacks on the SSH port, the most common target on exposed servers.
Extend the rules to Nginx or Apache logs to ban scans and exploitation attempts.
Combine fail2ban (local) with CrowdSec (collaborative) and a hardened bastion for several layers of protection.
Guide optimized for ServOrbit Cloud VPS.
A VPS with 512 MB RAM is enough, Ubuntu 22.04. The template installs fail2ban with a hardened jail.local and SSH protection active.
Check with fail2ban-client status then fail2ban-client status sshd: the SSH jail should be active and watching the logs.
Enable additional jails (nginx, apache, postfix…) in /etc/fail2ban/jail.local according to the services you host.
Adjust bantime, findtime and maxretry to your tolerance, and add your trusted IPs to ignoreip.
Browse our help center and FAQ, or write to our team — support in French, English and Arabic.