https://github.com/mitchellkrogza/fail2ban-useful-scripts
A collection of useful scripts for automation of & easing maintenance of Fail2Ban
https://github.com/mitchellkrogza/fail2ban-useful-scripts
Last synced: 9 months ago
JSON representation
A collection of useful scripts for automation of & easing maintenance of Fail2Ban
- Host: GitHub
- URL: https://github.com/mitchellkrogza/fail2ban-useful-scripts
- Owner: mitchellkrogza
- Created: 2016-07-14T08:23:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-06-20T10:14:58.000Z (almost 8 years ago)
- Last Synced: 2025-01-13T03:50:32.359Z (over 1 year ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 48
- Watchers: 7
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fail2ban-useful-scripts
A collection of useful scripts for automation of & easing maintenance of Fail2Ban
## f2b-badips-to-hostsdeny.sh
Bash script for blocking IPs which have been reported to http://www.badips.com
This writes IP entries to your hosts.deny file on Ubuntu and immediately blocks
all the Bad Ip's it collects from accessing SSH on your server
## f2b-reset-log-db.sh
This script clears the log file and database of Fail2Ban
This resets Fail2Ban to a completely clean state
Useful to use after you have finished testing all your jails
and completed your initial setup of Fail2Ban and are now
putting the server into LIVE mode