nginx -s reload
# sudo apt-get install apache2-utils
ab -n 500 -c 20 https://www.example.com/
# sudo apt-get install seige
Following commands are excecuted from within the mf-site-proxy
pod
$ tail -f /var/log/faillog
NginX Request Limit Exceeded Jail
$ fail2ban-client status nginx-req-limit
NginX HTTP Auth Jail
$ fail2ban-client status nginx-http-auth
NginX Bot Search Jail
$ fail2ban-client status nginx-botsearch
$ fail2ban-client set nginx-req-limit unbanip 190.141.201.132
$ fail2ban-client -vvv set nginx-http-auth banip 192.168.255.205
The best way to unban all IPs from a Jail is to set the ban time to 1 second momentarily and let fail2ban unban all the ips, then reset the jail time back to normal:
$ fail2ban-client set nginx-req-limit bantime 1;
# Later to reset back to normal
$ fail2ban-client set nginx-req-limit bantime 7200;