Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


CWP - Centos-WebPanel - Fail2Ban Bridge

Forgot to mention: Do not use this if you notice problems with CSF !!!

  • there is a solution to made them work together, CSF is capable to do more than Fail2Ban, but just to have a backup Fail2Ban is great for that


  1. Download and save file fail2ban.php into: /usr/local/cwpsrv/htdocs/resources/admin/modules/fail2ban.php
  2. Login to CWP web interface as root and open url: HOSTNAME/admin/index.php?module=fail2ban
  3. Click Install button and wait while page is loading
  4. Edit file: /etc/fail2ban/jail.conf Set next values:
bantime = 3600
enable = true
  1. Restart Fail2Ban to take effect
Copyright (c) 2018 Goran Margetić
CWP Fail2Ban Bridge License: BSD 3-Clause License
Fail2Ban License: GNU General Public License v2.0 - Fail2Ban