Skip to content

Instantly share code, notes, and snippets.

@hannesbe
Last active January 12, 2016 16:10
Show Gist options
  • Save hannesbe/09c1254a0b74aefc4b47 to your computer and use it in GitHub Desktop.
Save hannesbe/09c1254a0b74aefc4b47 to your computer and use it in GitHub Desktop.
fail2ban action config for csf deny / unblock IP
# fail2ban action config for csf deny / unblock IP
# /etc/fail2ban/action.d/csf.conf
[Definition]
actionstart =
actionstop =
actioncheck =
# to deny an IP and add to /etc/csf/csf.deny
actionban = csf -d <ip> added by fail2ban for <name>
# to unblock an IP and remove from /etc/csf/csf.deny
actionunban = csf -dr <ip>
[Init]
name = default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment