AdGuard Home
DNS ad blocker
Dev / ToolsFree
SSH brute-force protection
The script is free · VPS from $2.79 per month · installs in about 30 seconds
root@vps:~# sudo apt update && sudo apt install -y fail2ban && printf '[sshd]\nenabled = true\nbackend = systemd\n' | sudo tee /etc/fail2ban/jail.local && sudo systemctl enable --now fail2ban && sudo systemctl restart fail2ban
✓ Fail2ban 1.1.1 installed · about 30 seconds
root@vps:~#
Fail2ban watches logs and temporarily bans IPs that try to guess passwords for SSH, mail or web panels. On any public VPS such attempts never stop.
SSH protection is enabled right after installation: a few failed logins and the IP gets banned. Rules (jails) can be added for Nginx, Postfix and other services.
The command installs the package from the repository and enables the sshd jail with the systemd backend, so it works even where there is no /var/log/auth.log.
For Fail2ban: at least 1 vCPU, 2 GB RAM and 10 GB NVMe.
Three steps in the bot or one command over SSH; installation takes about 30 seconds.
Open @ExpressHost_bot and pay for a VPS. The server will be ready in about 60 seconds.
At the “Add-ons” step pick the script from the library, or run it later: Server settings → Scripts.
fail2ban-client status sshd
Connect to the server as root and run the command. Supported systems: Ubuntu 22.04, Ubuntu 24.04, Debian 11, Debian 12.
sudo apt update && sudo apt install -y fail2ban && printf '[sshd]\nenabled = true\nbackend = systemd\n' | sudo tee /etc/fail2ban/jail.local && sudo systemctl enable --now fail2ban && sudo systemctl restart fail2banfail2ban-client status sshdfail2ban-client set sshd unbanip 1.2.3.4ignoreip in /etc/fail2ban/jail.local so you don't lock yourself outDidn’t find an answer? Message @ExpressHost_SupportBot.
Log in through the VNC console and run fail2ban-client set sshd unbanip YOUR_IP.
Write your own rules in /etc/fail2ban/jail.local and leave the default jail.conf untouched: it is overwritten on updates.
No, it's designed for password brute-forcing and suspicious requests in logs, not volumetric attacks.
Fail2ban installs at checkout — in the bot.
Netherlands, Amsterdam
$2.89/mo
$0.10 for 24 hours · $0.72 for 7 days
Fail2ban is installed manually: the install command is further down this page.
Germany, Frankfurt
$3.14/mo
$0.11 for 24 hours · $0.79 for 7 days
Fail2ban is installed manually: the install command is further down this page.
Poland, Warsaw
$2.79/mo
$0.10 for 24 hours · $0.70 for 7 days
Fail2ban is installed manually: the install command is further down this page.
Estonia, Tallinn
$3.10/mo
$0.11 for 24 hours · $0.78 for 7 days
Fail2ban is installed manually: the install command is further down this page.