Created
February 28, 2016 22:09
-
-
Save stephennaicken/3319af2bb777461fc20e to your computer and use it in GitHub Desktop.
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
# /etc/fail2ban/jail.local | |
[ghost-blog-auth] | |
enabled = true | |
port=443 | |
filter = ghost-blog-auth | |
logpath = /var/log/upstart/ghost.log | |
maxretry = 3 |
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
# /etc/fail2ban/filter.d/ghost-blog-auth.conf | |
[Definition] | |
failregex = <HOST> - - \[ \+0000\] "POST \/ghost\/api\/v0.1\/authentication\/token HTTP\/1.0" (404|401) \d+ "https:\/\/domain.com\/ghost\/signin\/" \".+\" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment