From efbe8d1215d28d64972ce09f3976d1a41d2630a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C6=ACHE=20=D0=AFAW=20=E2=98=A3?= Date: Tue, 16 Jun 2020 19:21:13 +0200 Subject: [PATCH] Delete install --- iptables/install | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 iptables/install diff --git a/iptables/install b/iptables/install deleted file mode 100644 index 1309f09..0000000 --- a/iptables/install +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y -sudo apt-get install iptables-persistent -sudo invoke-rc.d iptables-persistent save -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 -touch /nginx/logs/error.log -sudo service fail2ban start -clear