Skip to content

Instantly share code, notes, and snippets.

@chk1
Created June 29, 2019 14:35
Show Gist options
  • Save chk1/7fc9134ebd75018b9b2842387a016b9c to your computer and use it in GitHub Desktop.
Save chk1/7fc9134ebd75018b9b2842387a016b9c to your computer and use it in GitHub Desktop.
Fail2ban filters
[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 =
[Definition]
failregex = ^.*:[0-9]+ <HOST> - - \[.*\] "(GET|POST|HEAD) \/(test|x|shell|.*myadmin.+|pma\/.+|mysql\/.+|administrator\/.+|admin\/.+|java|help|wp-login)\.php HTTP.* 40
ignoreregex =
[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