From 994727d2cd5a2aef38ff504c778e5c69358c9142 Mon Sep 17 00:00:00 2001 From: ChiefGyk Date: Sun, 26 Jun 2016 11:06:40 -0400 Subject: [PATCH] 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 --- setup/system.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup/system.sh b/setup/system.sh index d6ddc5e9..f9122f32 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -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