INNER CODE UNIT · Shell
datepattern
magenx/Magento-2-server-installation · magenx.install.latest.sh:1924
datepattern = \[%%d/%%b/%%Y:%%H:%%M:%%S
END
_space 1
tee /etc/fail2ban/filter.d/nginx-local-429.conf <<'END'
[Definition]
failregex = ^<HOST> -.*"(GET|POST|HEAD).*" 429
ignoreregex =
datepattern = \[%%d/%%b/%%Y:%%H:%%M:%%S
END
_space 1
tee /etc/fail2ban/action.d/nginx-local-deny.conf <<'END'
[Definition]
actionstart =
actionstop =
actioncheck =
actionban = echo "<ip> 1; ## $(date '+%%Y-%%m-%%d %%H:%%M:%%S') <name>" >> <nginx_local_deny> && nginx -s reload