Created
October 14, 2019 11:49
-
-
Save josectheone/dd52f4c92921a0478c2cc36313ee80dc to your computer and use it in GitHub Desktop.
Fail2ban conf file
This file contains 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
[sshd] | |
enabled = true | |
[INCLUDES] | |
before = paths-fedora.conf | |
[DEFAULT] | |
ignorecommand = | |
bantime = 60m | |
findtime = 10m | |
maxretry = 3 | |
backend = systemd | |
usedns = warn | |
logencoding = auto | |
enabled = false | |
mode = normal | |
filter = %(__name__)s[mode=%(mode)s] | |
# | |
# ACTIONS | |
# | |
destemail = josecarlos@grupobrisanet.com.br | |
sender = root@<fq-hostname> | |
mta = sendmail | |
protocol = tcp | |
chain = <known/chain> | |
port = 0:65535 | |
fail2ban_agent = Fail2Ban/%(fail2ban_version)s | |
banaction = ufw | |
banaction_allports = ufw | |
action_ = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"] | |
action_mw = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"] | |
%(mta)s-whois[name=%(__name__)s, sender="%(sender)s", dest="%(destemail)s", protocol="%(protocol)s", chain="%(chain)s"] | |
action_mwl = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"] | |
%(mta)s-whois-lines[name=%(__name__)s, sender="%(sender)s", dest="%(destemail)s", logpath=%(logpath)s, chain="%(chain)s"] | |
action_xarf = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"] | |
xarf-login-attack[service=%(__name__)s, sender="%(sender)s", logpath=%(logpath)s, port="%(port)s"] | |
action_cf_mwl = cloudflare[cfuser="%(cfemail)s", cftoken="%(cfapikey)s"] | |
%(mta)s-whois-lines[name=%(__name__)s, sender="%(sender)s", dest="%(destemail)s", logpath=%(logpath)s, chain="%(chain)s"] | |
action_blocklist_de = blocklist_de[email="%(sender)s", service=%(filter)s, apikey="%(blocklist_de_apikey)s", agent="%(fail2ban_agent)s"] | |
action_badips = badips.py[category="%(__name__)s", banaction="%(banaction)s", agent="%(fail2ban_agent)s"] | |
action_badips_report = badips[category="%(__name__)s", agent="%(fail2ban_agent)s"] | |
action_abuseipdb = abuseipdb | |
action = %(action_mw)s | |
# | |
# JAILS | |
# | |
........... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment