From 8d1cff5d7b6af5b50f18e688f1ad5e3e29301b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C6=ACHE=20=D0=AFAW=20=E2=98=A3?= Date: Mon, 9 Apr 2018 20:34:57 +0200 Subject: [PATCH] Update install --- install | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install b/install index 1d5d81b..8f935b1 100644 --- a/install +++ b/install @@ -199,6 +199,17 @@ case "`grep DISTRIB_CODENAME /etc/*-release | awk -F '=' '{print $2}'`" in #mkdir -p /tmp/; cd /tmp; wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/install #chmod +x install; ./install clear + 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 + curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/filter.d/nginx-limits.conf > /etc/fail2ban/filter.d/nginx-limits.conf + curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/filter.d/nginx-ban.conf > /etc/fail2ban/filter.d/nginx-ban.conf + touch /nginx/logs/error.log + clear + sudo service fail2ban start + clear + + service fail2ban status nginx -t ;;