From 0d34d02bfd88f3d870036c6f001cdc26ed174581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C6=ACHE=20=D0=AFAW=20=E2=98=A3?= Date: Sat, 24 Feb 2018 12:54:24 +0100 Subject: [PATCH] Update install --- iptables/install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/iptables/install b/iptables/install index de73cd5..aadf7da 100644 --- a/iptables/install +++ b/iptables/install @@ -8,11 +8,18 @@ clear # ======================================================================== mkdir -p /firewall/iptables/bin echo '#!/bin/bash' > /firewall/iptables/bin/fire.sh +echo 'sudo service fail2ban stop' >> /firewall/iptables/bin/fire.sh echo 'nano /etc/iptables/rules.v4' >> /firewall/iptables/bin/fire.sh echo 'iptables-restore < /etc/iptables/rules.v4' >> /firewall/iptables/bin/fire.sh echo 'iptables-save > /etc/iptables/rules.v4' >> /firewall/iptables/bin/fire.sh +echo 'sudo service fail2ban start' >> /firewall/iptables/bin/fire.sh ln -sf /firewall/iptables/bin/fire.sh /bin/fire curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/rules > /etc/iptables/rules.v4 chmod +x /bin/fire # ======================================================================== + +sudo apt-get install fail2ban -y +sudo service fail2ban stop +curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/jail.local > /etc/fail2ban/jail.local +sudo service fail2ban start