From 89274c641147a3db11392b4dde93cec9906bc367 Mon Sep 17 00:00:00 2001 From: ChiefGyk Date: Tue, 28 Jun 2016 15:57:04 -0400 Subject: [PATCH] automated the iptables-persistent installation so it doesn't require user interaction --- setup/system.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup/system.sh b/setup/system.sh index c3271a46..a9968b92 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -300,7 +300,13 @@ cp conf/fail2ban/dovecotimap.conf /etc/fail2ban/filter.d/dovecotimap.conf restart_service fail2ban # Add Blocklist.de malicious IP Addresses to Daily Crontab +# Also IPtables-persistent to save IP addresses upon reboot # Added by Alon "ChiefGyk" Ganon cp conf/blocklist/sync-fail2ban /etc/cron.daily/sync-fail2ban chmod a+x /etc/cron.daily/sync-fail2ban time /etc/cron.daily/sync-fail2ban +echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections +echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections +apt_install iptables-persistent +iptables-save > /etc/iptables/rules.v4 +ip6tables-save > /etc/iptables/rules.v6