diff --git a/deployment/bare_metal/old/setup_server_online_ubuntu18.sh b/deployment/bare_metal/old/setup_server_online_ubuntu18.sh index 8782fa3b4..86059a815 100644 --- a/deployment/bare_metal/old/setup_server_online_ubuntu18.sh +++ b/deployment/bare_metal/old/setup_server_online_ubuntu18.sh @@ -6,30 +6,6 @@ log_format main '$http_x_forwarded_for - $remote_user [$time_local] ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" $request_time'; EOF - -# fail2ban enable blocking to many http request resulting in forbidden -echo "fail2ban config" -cd /etc/fail2ban/filter.d -sudo cat < nginx-forbidden.conf -[Definition] -failregex = ^.*\[error\] \d+#\d+: .* forbidden .*, client: , .*$ - -ignoreregex = -EOF - -cd /etc/fail2ban/jail.d -sudo cat < nginx-forbidden.conf -[nginx-forbidden] -enabled = true -filter = nginx-forbidden -port = http,https -logpath = /var/log/nginx/*error*.log -findtime = 60 -bantime = 6000 -maxretry = 3 -EOF - -sudo service fail2ban restart # phpmyadmin echo "install and secure phpmyadmin"