Skip to content

LynxGeekNYC/fail2ban-web-interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fail2Ban Webinterface (f2bwi)
Monitoring fail2ban and manually ban / release IP's

- get your fail2ban and jails running, if not already done
- unpack archive and put contents to your webspace
- protect this script, use at least .htaccess auth or ip allow/deny rules
- allow use of "exec()" php function for this script if restricted
- edit config.inc.php to your needs
- run this script to check if socket access is ok
- maybe you need to change the file /etc/init.d/fail2ban to this:
  at the end of "function do_start()" before the line "return 0" put
  "chmod 766 $SOCKFILE" to make the socket r/w for webserver user
  and then restart fail2ban
- run the script with your browser

update 30/12/2023 - by cleiton meurer

-changed to use sudo - edit /etc/sudoers "www-data ALL=NOPASSWD:/usr/bin/fail2ban-client"
-add language support pt br
-changed script to support ipv6
-removed $SOCKFILE check replaced with a sudo check
-changed error return locations to top of page

# Was this script helpful to you? Please donate:

PayPal: alex@alexandermirvis.com

CashApp / Venmo: LynxGeekNYC

BitCoin: bc1q8sthd96c7chhq5kr3u80xrxs26jna9d8c0mjh7

About

Simple Web Interface for Fail2ban that actually works

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published