Difference between revisions of "Fail2ban"
Jump to navigation
Jump to search
(Created page with "== Blocking spammers from your wiki == If you have a public wiki that allows content creation for registered users and also registration without email confirmation and/or acc...") |
|||
Line 44: | Line 44: | ||
ignoreregex = 99\.999\.9\.99 | ignoreregex = 99\.999\.9\.99 | ||
</source> | </source> | ||
+ | |||
+ | == More == | ||
+ | tldr; | ||
+ | # add a bunch of '<code>enabled = true</code>' after the filters you want | ||
+ | # add port 8080 to any apache rules since Meza is listening on 8080 <code>:%s/https/https,8080/</code> | ||
+ | # restart the service <code>service restart fail2ban</code> | ||
+ | |||
+ | See https://www.digitalocean.com/community/tutorials/how-to-protect-an-apache-server-with-fail2ban-on-ubuntu-14-04 | ||
+ | |||
+ | == Test == | ||
+ | sudo fail2ban-client status | ||
+ | sudo fail2ban-client status apache-post | ||
[[Category:Security]] | [[Category:Security]] | ||
Line 49: | Line 61: | ||
[[Category:Firewall]] | [[Category:Firewall]] | ||
[[Category:SSH]] | [[Category:SSH]] | ||
+ | [[Category:QualityBox]] |