Guides tagged “fail2ban”
Step-by-step MdmHost guides about fail2ban, sorted A-Z.
11 guides
Check banned IPs and unban an address in Fail2ban
See which IP addresses Fail2ban has banned, find out why, unban an address in one command and whitelist it so it does not happen again.
Configure Fail2ban jails: bantime, findtime and maxretry in jail.local
Set up Fail2ban properly with a jail.local file. Tune bantime, findtime and maxretry, enable incremental bans, whitelist your own IP and pick the right log backend.
Fail2ban not banning? Common causes and fixes
Fail2ban is running but attackers are never banned. Work through the usual causes, from the wrong log backend and log path to a ban action that does not fit your firewall or a custom SSH port.
Get email or Telegram alerts when Fail2ban bans an IP
Make Fail2ban tell you when it bans someone. Use the built-in email action, add a custom action that posts to Telegram or a webhook, and keep the alerts from flooding your inbox.
Lock down SSH on a Linux VPS: a complete checklist
A step-by-step SSH hardening checklist for Linux VPS and WHM servers: keys only, no root password login, firewall limits by IP, brute-force bans and safe testing.
Network Hardening: Monitoring for Unauthorized Port Scans on the VPS
Learn how to monitor port scans on a VPS, log the source addresses that probe your server, and block repeat offenders automatically on Linux and Windows.
Protect Nginx with Fail2ban: bad bots, scanners and auth
Turn on Fail2ban's built-in Nginx jails to ban password guessers, vulnerability scanners and clients that hit your rate limits, then test each filter against your real logs.
Protect Plesk with Fail2Ban (IP address banning)
Enable Fail2Ban in Plesk, choose which jails to activate, tune ban time and retries, whitelist trusted IPs and unban an address that was blocked by mistake.
Protect SSH from brute-force attacks with Fail2ban
Install Fail2ban, create a safe jail.local for SSH, check which addresses are banned and unban yourself if you mistype a password too often.
Use Fail2ban with firewalld or nftables ban actions
Make Fail2ban put its bans into the firewall your server really uses. Set banaction to firewalld rich rules or nftables, check the distribution defaults and confirm bans in the live ruleset.
Write a custom Fail2ban filter and test it with fail2ban-regex
Build your own Fail2ban filter for an app that has no built-in one. Write a failregex with the HOST tag, set a datepattern, test it with fail2ban-regex and attach it to a new jail.
Browse by topic
- Getting startedYour first hour with a new server: access, logins and basics.69 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.37 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.49 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.40 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.37 guides
- DomainsRegistering, transferring and managing domains and nameservers.20 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.19 guides
- CloudLinuxCloudLinux setup and use: LVE limits, CloudLinux Manager, CageFS and PHP/Node.js selectors.31 guides
- LiteSpeedLiteSpeed Web Server, LSCache and the LiteSpeed Cache plugin: install, settings and tuning.30 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.23 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.23 guides
- WP SquaredcPanel's WordPress platform: sites, plugins, staging and backups.9 guides
- SitePadBuild and publish websites with the SitePad builder.9 guides
- SitejetDesign, edit and publish sites with the Sitejet builder.9 guides
- WHMResellerAlpha and master resellers with WHMReseller: install, setup and use.12 guides
- VirtFusionInstall, set up and manage VirtFusion: hypervisors, packages, servers and WHMCS integration.7 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.30 guides
- PleskWebsites, email, databases and settings in the Plesk panel.52 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.40 guides
- WHMCSBilling, automation, products and client management with WHMCS.51 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.106 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.115 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.34 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.52 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.64 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.68 guides
- Linux VPSSSH, packages, services and everyday Linux administration.70 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.58 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.58 guides
Still stuck?
Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.
