Created
June 29, 2019 14:35
-
-
Save chk1/7fc9134ebd75018b9b2842387a016b9c to your computer and use it in GitHub Desktop.
Fail2ban filters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Definition] | |
failregex = ^.*:[0-9]+ <HOST> - - \[.*\] "(GET|POST|HEAD).*HTTP.* (403|404) | |
^\d+\/\d+\/\d+ \d+:\d+:\d+ \[error\] \d+#\d+: \*\d+ access forbidden by rule, client: <HOST>, server: | |
ignoreregex = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Definition] | |
failregex = ^.*:[0-9]+ <HOST> - - \[.*\] "(GET|POST|HEAD) \/(test|x|shell|.*myadmin.+|pma\/.+|mysql\/.+|administrator\/.+|admin\/.+|java|help|wp-login)\.php HTTP.* 40 | |
ignoreregex = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Definition] | |
failregex = ^.*:[0-9]+ <HOST> - - \[.*\] "\\x.*" 400 | |
ignoreregex = |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment