added script which automatically adds IP addresses which have been reported to be attacking other servers. It will update the IPTables automatically everyday, as well as perform the initial run the first day. As mentioned in #864 on the origin

This commit is contained in:
ChiefGyk 2016-06-26 11:06:40 -04:00
parent 6f1315f93a
commit 994727d2cd
1 changed files with 5 additions and 0 deletions

View File

@ -304,3 +304,8 @@ cp conf/fail2ban/miab-postfix-submission.conf /etc/fail2ban/filter.d/miab-postfi
cp conf/fail2ban/miab-roundcube.conf /etc/fail2ban/filter.d/miab-roundcube.conf
restart_service fail2ban
# Add Blocklist.de malicious IP Addresses to Daily Crontab
curl -s https://gist.githubusercontent.com/klepsydra/ecf975984b32b1c8291a/raw > /etc/cron.daily/sync-fail2ban
chmod a+x /etc/cron.daily/sync-fail2ban
time /etc/cron.daily/sync-fail2ban