Skip to content

Instantly share code, notes, and snippets.

@tuklusan
Last active October 30, 2019 03:44
Show Gist options
  • Save tuklusan/c6caa7d2d9c3844eaf522aae371039db to your computer and use it in GitHub Desktop.
Save tuklusan/c6caa7d2d9c3844eaf522aae371039db to your computer and use it in GitHub Desktop.
Got Fail2Ban working? Have a Web Server running? Post a public blocklist for others to use! Complete guide: http://supratim-sanyal.blogspot.com/2016/09/got-fail2ban-working-have-web-server.html
#/etc/cron.d/dump-fail2ban-blocklist
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
MAILTO=""
HOME=/
# Every 7th minute past the hour, dump the fail2ban blocklist
7 * * * * root /root/security/dump-fail2ban-blocklist.sh >/var/log/dump-fail2ban-blocklist.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment