Skip to content

Instantly share code, notes, and snippets.

@hannesbe
Last active January 25, 2016 06:23
Show Gist options
  • Save hannesbe/52e080c0b25f24959fc7 to your computer and use it in GitHub Desktop.
Save hannesbe/52e080c0b25f24959fc7 to your computer and use it in GitHub Desktop.
fail2ban jail.local to enable sshd jailn & additions for specific jails
# fail2ban local jail config
# /etc/fail2ban/jail.local
# jail.conf should not be modified, put overrides to jail.conf in jail.local
# enable sshd jail
[sshd]
enabled = true
# enable recidive jail to permanently ban recidives
[recidive]
enabled = true
# enable apache-wp jails
[apache-wp-xmlrpc]
enabled = true
[apache-wp-login]
enabled = true
# set default banaction to csf
[DEFAULT]
banaction = csf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment