2006-07-17 19:26:14 +00:00
|
|
|
#
|
2013-04-17 05:05:04 +00:00
|
|
|
# WARNING: heavily refactored in 0.9.0 release. Please review and
|
|
|
|
# customize settings for your setup.
|
|
|
|
#
|
2012-06-05 02:41:28 +00:00
|
|
|
# Changes: in most of the cases you should not modify this
|
2013-04-17 05:05:04 +00:00
|
|
|
# file, but provide customizations in jail.local file,
|
|
|
|
# or separate .conf files under jail.d/ directory, e.g.:
|
2012-06-05 02:41:28 +00:00
|
|
|
#
|
2013-10-09 22:56:52 +00:00
|
|
|
# HOW TO ACTIVATE JAILS:
|
2006-07-17 19:26:14 +00:00
|
|
|
#
|
2013-10-09 22:56:52 +00:00
|
|
|
# YOU SHOULD NOT MODIFY THIS FILE.
|
2006-07-17 19:26:14 +00:00
|
|
|
#
|
2014-07-05 15:55:57 +00:00
|
|
|
# It will probably be overwritten or improved in a distribution update.
|
2013-10-09 22:56:52 +00:00
|
|
|
#
|
|
|
|
# Provide customizations in a jail.local file or a jail.d/customisation.local.
|
|
|
|
# For example to change the default bantime for all jails and to enable the
|
|
|
|
# ssh-iptables jail the following (uncommented) would appear in the .local file.
|
|
|
|
# See man 5 jail.conf for details.
|
2012-06-05 02:41:28 +00:00
|
|
|
#
|
|
|
|
# [DEFAULT]
|
2014-10-23 23:32:04 +00:00
|
|
|
# bantime = 1h
|
2012-06-05 02:41:28 +00:00
|
|
|
#
|
2013-04-23 02:23:23 +00:00
|
|
|
# [sshd]
|
2012-06-05 02:41:28 +00:00
|
|
|
# enabled = true
|
2006-07-17 19:26:14 +00:00
|
|
|
#
|
2013-04-17 05:05:04 +00:00
|
|
|
# See jail.conf(5) man page for more information
|
2006-07-17 19:26:14 +00:00
|
|
|
|
2013-10-09 22:56:52 +00:00
|
|
|
|
|
|
|
|
2013-10-10 19:48:31 +00:00
|
|
|
# Comments: use '#' for comment lines and ';' (following a space) for inline comments
|
2006-07-17 19:26:14 +00:00
|
|
|
|
2014-01-25 12:25:54 +00:00
|
|
|
|
|
|
|
[INCLUDES]
|
|
|
|
|
2014-03-18 02:07:19 +00:00
|
|
|
#before = paths-distro.conf
|
2014-03-12 09:32:41 +00:00
|
|
|
before = paths-debian.conf
|
2014-01-25 12:25:54 +00:00
|
|
|
|
2010-09-27 13:18:32 +00:00
|
|
|
# The DEFAULT allows a global definition of the options. They can be overridden
|
2006-09-17 22:38:44 +00:00
|
|
|
# in each jail afterwards.
|
|
|
|
|
|
|
|
[DEFAULT]
|
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
#
|
2013-04-23 17:55:26 +00:00
|
|
|
# MISCELLANEOUS OPTIONS
|
2013-04-17 05:05:04 +00:00
|
|
|
#
|
|
|
|
|
2018-08-14 09:11:19 +00:00
|
|
|
# "ignoreself" specifies whether the local resp. own IP addresses should be ignored
|
2017-03-23 14:52:31 +00:00
|
|
|
# (default is true). Fail2ban will not ban a host which matches such addresses.
|
2018-08-14 09:11:19 +00:00
|
|
|
#ignoreself = true
|
2017-03-23 14:52:31 +00:00
|
|
|
|
|
|
|
# "ignoreip" can be a list of IP addresses, CIDR masks or DNS hosts. Fail2ban
|
|
|
|
# will not ban a host which matches an address in this list. Several addresses
|
|
|
|
# can be defined using space (and/or comma) separator.
|
|
|
|
#ignoreip = 127.0.0.1/8 ::1
|
2006-12-18 22:33:01 +00:00
|
|
|
|
2013-10-21 13:15:13 +00:00
|
|
|
# External command that will take an tagged arguments to ignore, e.g. <ip>,
|
|
|
|
# and return true if the IP is to be ignored. False otherwise.
|
|
|
|
#
|
|
|
|
# ignorecommand = /path/to/command <ip>
|
2013-12-25 11:01:31 +00:00
|
|
|
ignorecommand =
|
2013-10-21 13:15:13 +00:00
|
|
|
|
2006-11-15 18:44:28 +00:00
|
|
|
# "bantime" is the number of seconds that a host is banned.
|
2014-10-23 23:32:04 +00:00
|
|
|
bantime = 10m
|
2006-12-18 22:33:01 +00:00
|
|
|
|
|
|
|
# A host is banned if it has generated "maxretry" during the last "findtime"
|
|
|
|
# seconds.
|
2014-10-23 23:32:04 +00:00
|
|
|
findtime = 10m
|
2006-12-18 22:33:01 +00:00
|
|
|
|
2006-11-15 18:44:28 +00:00
|
|
|
# "maxretry" is the number of failures before a host get banned.
|
2013-04-17 05:05:04 +00:00
|
|
|
maxretry = 5
|
2006-09-17 22:38:44 +00:00
|
|
|
|
2011-12-30 05:18:52 +00:00
|
|
|
# "backend" specifies the backend used to get files modification.
|
2013-05-09 23:15:07 +00:00
|
|
|
# Available options are "pyinotify", "gamin", "polling", "systemd" and "auto".
|
2011-12-30 05:18:52 +00:00
|
|
|
# This option can be overridden in each jail as well.
|
2006-12-18 22:33:01 +00:00
|
|
|
#
|
2011-12-30 05:18:52 +00:00
|
|
|
# pyinotify: requires pyinotify (a file alteration monitor) to be installed.
|
|
|
|
# If pyinotify is not installed, Fail2ban will use auto.
|
|
|
|
# gamin: requires Gamin (a file alteration monitor) to be installed.
|
|
|
|
# If Gamin is not installed, Fail2ban will use auto.
|
|
|
|
# polling: uses a polling algorithm which does not require external libraries.
|
2013-05-09 23:15:07 +00:00
|
|
|
# systemd: uses systemd python library to access the systemd journal.
|
|
|
|
# Specifying "logpath" is not valid for this backend.
|
|
|
|
# See "journalmatch" in the jails associated filter config
|
2011-12-30 05:18:52 +00:00
|
|
|
# auto: will try to use the following backends, in order:
|
|
|
|
# pyinotify, gamin, polling.
|
2015-03-22 01:25:50 +00:00
|
|
|
#
|
2015-11-02 22:21:14 +00:00
|
|
|
# Note: if systemd backend is chosen as the default but you enable a jail
|
2015-03-22 01:25:50 +00:00
|
|
|
# for which logs are present only in its own log files, specify some other
|
|
|
|
# backend for that jail (e.g. polling) and provide empty value for
|
|
|
|
# journalmatch. See https://github.com/fail2ban/fail2ban/issues/959#issuecomment-74901200
|
2006-10-17 21:13:11 +00:00
|
|
|
backend = auto
|
|
|
|
|
2012-01-13 04:23:41 +00:00
|
|
|
# "usedns" specifies if jails should trust hostnames in logs,
|
2013-04-23 17:56:51 +00:00
|
|
|
# warn when DNS lookups are performed, or ignore all hostnames in logs
|
2012-01-13 04:23:41 +00:00
|
|
|
#
|
2013-04-23 17:56:51 +00:00
|
|
|
# yes: if a hostname is encountered, a DNS lookup will be performed.
|
|
|
|
# warn: if a hostname is encountered, a DNS lookup will be performed,
|
2012-01-13 04:23:41 +00:00
|
|
|
# but it will be logged as a warning.
|
|
|
|
# no: if a hostname is encountered, will not be used for banning,
|
|
|
|
# but it will be logged as info.
|
2016-05-30 13:34:21 +00:00
|
|
|
# raw: use raw value (no hostname), allow use it for no-host filters/actions (example user)
|
2012-01-13 04:23:41 +00:00
|
|
|
usedns = warn
|
|
|
|
|
2013-02-27 18:09:55 +00:00
|
|
|
# "logencoding" specifies the encoding of the log files handled by the jail
|
|
|
|
# This is used to decode the lines from the log file.
|
|
|
|
# Typical examples: "ascii", "utf-8"
|
|
|
|
#
|
|
|
|
# auto: will use the system locale setting
|
|
|
|
logencoding = auto
|
|
|
|
|
2013-04-23 02:23:23 +00:00
|
|
|
# "enabled" enables the jails.
|
2013-04-23 17:58:58 +00:00
|
|
|
# By default all jails are disabled, and it should stay this way.
|
|
|
|
# Enable only relevant to your setup jails in your .local or jail.d/*.conf
|
2013-04-23 02:23:23 +00:00
|
|
|
#
|
2013-04-23 17:55:26 +00:00
|
|
|
# true: jail will be enabled and log files will get monitored for changes
|
2013-04-23 02:26:42 +00:00
|
|
|
# false: jail is not enabled
|
2013-04-23 02:23:23 +00:00
|
|
|
enabled = false
|
|
|
|
|
|
|
|
|
2017-12-05 15:09:18 +00:00
|
|
|
# "mode" defines the mode of the filter (see corresponding filter implementation for more info).
|
|
|
|
mode = normal
|
|
|
|
|
2013-04-23 02:23:23 +00:00
|
|
|
# "filter" defines the filter to use by the jail.
|
|
|
|
# By default jails have names matching their filter name
|
|
|
|
#
|
2017-12-05 15:09:18 +00:00
|
|
|
filter = %(__name__)s[mode=%(mode)s]
|
2013-04-23 02:23:23 +00:00
|
|
|
|
2006-09-17 22:38:44 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
#
|
|
|
|
# ACTIONS
|
|
|
|
#
|
|
|
|
|
2013-04-23 02:23:23 +00:00
|
|
|
# Some options used for actions
|
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
# Destination email address used solely for the interpolations in
|
2014-01-01 08:28:38 +00:00
|
|
|
# jail.{conf,local,d/*} configuration files.
|
2013-04-17 05:05:04 +00:00
|
|
|
destemail = root@localhost
|
|
|
|
|
2014-01-01 08:28:38 +00:00
|
|
|
# Sender email address used solely for some actions
|
2017-04-24 18:17:57 +00:00
|
|
|
sender = root@<fq-hostname>
|
2006-10-02 13:42:36 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
# E-mail action. Since 0.8.1 Fail2Ban uses sendmail MTA for the
|
|
|
|
# mailing. Change mta configuration parameter to mail if you want to
|
|
|
|
# revert to conventional 'mail'.
|
|
|
|
mta = sendmail
|
2006-09-06 21:33:18 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
# Default protocol
|
|
|
|
protocol = tcp
|
|
|
|
|
2017-10-30 12:32:52 +00:00
|
|
|
# Specify chain where jumps would need to be added in ban-actions expecting parameter chain
|
|
|
|
chain = <known/chain>
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2013-04-23 17:55:26 +00:00
|
|
|
# Ports to be banned
|
|
|
|
# Usually should be overridden in a particular jail
|
|
|
|
port = 0:65535
|
|
|
|
|
2015-12-30 19:17:12 +00:00
|
|
|
# Format of user-agent https://tools.ietf.org/html/rfc7231#section-5.5.3
|
|
|
|
fail2ban_agent = Fail2Ban/%(fail2ban_version)s
|
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
#
|
|
|
|
# Action shortcuts. To be used to define action parameter
|
|
|
|
|
2013-04-23 02:23:23 +00:00
|
|
|
# Default banning action (e.g. iptables, iptables-new,
|
|
|
|
# iptables-multiport, shorewall, etc) It is used to define
|
|
|
|
# action_* variables. Can be overridden globally or per
|
|
|
|
# section within jail.local file
|
|
|
|
banaction = iptables-multiport
|
2015-10-30 14:36:18 +00:00
|
|
|
banaction_allports = iptables-allports
|
2013-04-23 02:23:23 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
# The simplest action to take: ban only
|
2014-07-20 14:25:59 +00:00
|
|
|
action_ = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
|
2013-04-17 05:05:04 +00:00
|
|
|
|
|
|
|
# ban & send an e-mail with whois report to the destemail.
|
2014-07-20 14:25:59 +00:00
|
|
|
action_mw = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
|
2016-01-09 23:05:03 +00:00
|
|
|
%(mta)s-whois[name=%(__name__)s, sender="%(sender)s", dest="%(destemail)s", protocol="%(protocol)s", chain="%(chain)s"]
|
2013-04-17 05:05:04 +00:00
|
|
|
|
|
|
|
# ban & send an e-mail with whois report and relevant log lines
|
|
|
|
# to the destemail.
|
2014-07-20 14:25:59 +00:00
|
|
|
action_mwl = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
|
2016-01-09 23:05:03 +00:00
|
|
|
%(mta)s-whois-lines[name=%(__name__)s, sender="%(sender)s", dest="%(destemail)s", logpath=%(logpath)s, chain="%(chain)s"]
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2014-01-01 08:28:38 +00:00
|
|
|
# See the IMPORTANT note in action.d/xarf-login-attack for when to use this action
|
|
|
|
#
|
|
|
|
# ban & send a xarf e-mail to abuse contact of IP address and include relevant log lines
|
|
|
|
# to the destemail.
|
2014-07-20 14:25:59 +00:00
|
|
|
action_xarf = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
|
2014-01-01 08:28:38 +00:00
|
|
|
xarf-login-attack[service=%(__name__)s, sender="%(sender)s", logpath=%(logpath)s, port="%(port)s"]
|
|
|
|
|
2015-07-01 07:38:36 +00:00
|
|
|
# ban IP on CloudFlare & send an e-mail with whois report and relevant log lines
|
|
|
|
# to the destemail.
|
|
|
|
action_cf_mwl = cloudflare[cfuser="%(cfemail)s", cftoken="%(cfapikey)s"]
|
2016-01-09 23:05:03 +00:00
|
|
|
%(mta)s-whois-lines[name=%(__name__)s, sender="%(sender)s", dest="%(destemail)s", logpath=%(logpath)s, chain="%(chain)s"]
|
2014-01-01 08:28:38 +00:00
|
|
|
|
|
|
|
# Report block via blocklist.de fail2ban reporting service API
|
|
|
|
#
|
2017-10-27 13:26:17 +00:00
|
|
|
# See the IMPORTANT note in action.d/blocklist_de.conf for when to use this action.
|
|
|
|
# Specify expected parameters in file action.d/blocklist_de.local or if the interpolation
|
|
|
|
# `action_blocklist_de` used for the action, set value of `blocklist_de_apikey`
|
|
|
|
# in your `jail.local` globally (section [DEFAULT]) or per specific jail section (resp. in
|
|
|
|
# corresponding jail.d/my-jail.local file).
|
2014-01-01 08:28:38 +00:00
|
|
|
#
|
2015-12-30 19:17:12 +00:00
|
|
|
action_blocklist_de = blocklist_de[email="%(sender)s", service=%(filter)s, apikey="%(blocklist_de_apikey)s", agent="%(fail2ban_agent)s"]
|
2014-01-01 08:28:38 +00:00
|
|
|
|
2014-03-13 19:58:32 +00:00
|
|
|
# Report ban via badips.com, and use as blacklist
|
|
|
|
#
|
|
|
|
# See BadIPsAction docstring in config/action.d/badips.py for
|
|
|
|
# documentation for this action.
|
|
|
|
#
|
2014-03-13 20:04:30 +00:00
|
|
|
# NOTE: This action relies on banaction being present on start and therefore
|
|
|
|
# should be last action defined for a jail.
|
|
|
|
#
|
2015-12-30 19:17:12 +00:00
|
|
|
action_badips = badips.py[category="%(__name__)s", banaction="%(banaction)s", agent="%(fail2ban_agent)s"]
|
|
|
|
#
|
|
|
|
# Report ban via badips.com (uses action.d/badips.conf for reporting only)
|
|
|
|
#
|
|
|
|
action_badips_report = badips[category="%(__name__)s", agent="%(fail2ban_agent)s"]
|
2014-01-01 08:28:38 +00:00
|
|
|
|
2017-01-08 07:26:11 +00:00
|
|
|
# Report ban via abuseipdb.com.
|
|
|
|
#
|
2017-03-09 12:31:40 +00:00
|
|
|
# See action.d/abuseipdb.conf for usage example and details.
|
2017-01-08 07:26:11 +00:00
|
|
|
#
|
|
|
|
action_abuseipdb = abuseipdb
|
2014-01-01 08:28:38 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
# Choose default action. To change, just override value of 'action' with the
|
|
|
|
# interpolation to the chosen action shortcut (e.g. action_mw, action_mwl, etc) in jail.local
|
|
|
|
# globally (section [DEFAULT]) or per specific section
|
|
|
|
action = %(action_)s
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# JAILS
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# SSH servers
|
|
|
|
#
|
|
|
|
|
|
|
|
[sshd]
|
|
|
|
|
2017-03-10 21:08:03 +00:00
|
|
|
# To use more aggressive sshd modes set filter parameter "mode" in jail.local:
|
|
|
|
# normal (default), ddos, extra or aggressive (combines all).
|
|
|
|
# See "tests/files/logs/sshd" or "filter.d/sshd.conf" for usage example and details.
|
2017-12-05 15:09:18 +00:00
|
|
|
#mode = normal
|
2013-04-23 02:23:23 +00:00
|
|
|
port = ssh
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(sshd_log)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(sshd_backend)s
|
2014-01-25 12:25:54 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
|
|
|
|
[dropbear]
|
2006-10-02 13:42:36 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
port = ssh
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(dropbear_log)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(dropbear_backend)s
|
2013-04-17 05:05:04 +00:00
|
|
|
|
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
[selinux-ssh]
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
port = ssh
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(auditd_log)s
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2006-10-02 13:42:36 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
#
|
|
|
|
# HTTP servers
|
|
|
|
#
|
2007-02-22 21:11:30 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
[apache-auth]
|
2007-02-22 21:11:30 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
port = http,https
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(apache_error_log)s
|
2007-02-22 21:11:30 +00:00
|
|
|
|
2007-02-12 21:50:50 +00:00
|
|
|
|
|
|
|
[apache-badbots]
|
2014-01-06 22:34:39 +00:00
|
|
|
# Ban hosts which agent identifies spammer robots crawling the web
|
|
|
|
# for email addresses. The mail outputs are buffered.
|
2013-04-17 05:05:04 +00:00
|
|
|
port = http,https
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(apache_access_log)s
|
2014-10-23 23:32:04 +00:00
|
|
|
bantime = 48h
|
2007-02-12 21:50:50 +00:00
|
|
|
maxretry = 1
|
|
|
|
|
2013-11-12 22:16:45 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
[apache-noscript]
|
2006-10-17 21:13:11 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
port = http,https
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(apache_error_log)s
|
2013-02-11 16:14:29 +00:00
|
|
|
|
2013-11-12 22:16:45 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
[apache-overflows]
|
2013-02-11 16:14:29 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
port = http,https
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(apache_error_log)s
|
2013-04-17 05:05:04 +00:00
|
|
|
maxretry = 2
|
2013-02-11 16:14:29 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
|
|
|
|
[apache-nohome]
|
|
|
|
|
|
|
|
port = http,https
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(apache_error_log)s
|
2013-04-17 05:05:04 +00:00
|
|
|
maxretry = 2
|
2013-02-11 16:14:29 +00:00
|
|
|
|
2013-11-12 22:16:45 +00:00
|
|
|
|
2014-01-07 00:52:21 +00:00
|
|
|
[apache-botsearch]
|
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
port = http,https
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(apache_error_log)s
|
2013-04-17 05:05:04 +00:00
|
|
|
maxretry = 2
|
2013-02-11 16:14:29 +00:00
|
|
|
|
2013-11-12 22:16:45 +00:00
|
|
|
|
2015-02-02 05:42:01 +00:00
|
|
|
[apache-fakegooglebot]
|
|
|
|
|
|
|
|
port = http,https
|
|
|
|
logpath = %(apache_access_log)s
|
|
|
|
maxretry = 1
|
2015-02-02 16:38:23 +00:00
|
|
|
ignorecommand = %(ignorecommands_dir)s/apache-fakegooglebot <ip>
|
2015-02-02 05:42:01 +00:00
|
|
|
|
|
|
|
|
2013-12-28 22:28:11 +00:00
|
|
|
[apache-modsecurity]
|
|
|
|
|
2014-01-01 08:28:38 +00:00
|
|
|
port = http,https
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(apache_error_log)s
|
2013-12-28 22:28:11 +00:00
|
|
|
maxretry = 2
|
|
|
|
|
2015-12-30 00:43:52 +00:00
|
|
|
|
2014-09-26 15:37:50 +00:00
|
|
|
[apache-shellshock]
|
|
|
|
|
|
|
|
port = http,https
|
2014-10-29 17:08:51 +00:00
|
|
|
logpath = %(apache_error_log)s
|
2014-09-26 15:37:50 +00:00
|
|
|
maxretry = 1
|
2013-12-28 22:28:11 +00:00
|
|
|
|
2015-12-30 00:43:52 +00:00
|
|
|
|
2015-10-25 19:36:40 +00:00
|
|
|
[openhab-auth]
|
|
|
|
|
|
|
|
filter = openhab
|
|
|
|
action = iptables-allports[name=NoAuthFailures]
|
|
|
|
logpath = /opt/openhab/logs/request.log
|
|
|
|
|
2015-12-30 00:43:52 +00:00
|
|
|
|
2013-11-12 22:16:45 +00:00
|
|
|
[nginx-http-auth]
|
|
|
|
|
2015-01-19 09:28:53 +00:00
|
|
|
port = http,https
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(nginx_error_log)s
|
2013-11-12 22:16:45 +00:00
|
|
|
|
2015-10-29 22:15:20 +00:00
|
|
|
# To use 'nginx-limit-req' jail you should have `ngx_http_limit_req_module`
|
|
|
|
# and define `limit_req` and `limit_req_zone` as described in nginx documentation
|
|
|
|
# http://nginx.org/en/docs/http/ngx_http_limit_req_module.html
|
|
|
|
# or for example see in 'config/filter.d/nginx-limit-req.conf'
|
|
|
|
[nginx-limit-req]
|
|
|
|
port = http,https
|
|
|
|
logpath = %(nginx_error_log)s
|
|
|
|
|
2015-01-29 16:57:52 +00:00
|
|
|
[nginx-botsearch]
|
|
|
|
|
|
|
|
port = http,https
|
|
|
|
logpath = %(nginx_error_log)s
|
2015-02-04 00:48:59 +00:00
|
|
|
maxretry = 2
|
2013-11-12 22:16:45 +00:00
|
|
|
|
2015-12-30 00:43:52 +00:00
|
|
|
|
2009-08-30 14:17:29 +00:00
|
|
|
# Ban attackers that try to use PHP's URL-fopen() functionality
|
|
|
|
# through GET/POST variables. - Experimental, with more than a year
|
|
|
|
# of usage in production environments.
|
|
|
|
|
|
|
|
[php-url-fopen]
|
|
|
|
|
|
|
|
port = http,https
|
2014-11-29 05:04:09 +00:00
|
|
|
logpath = %(nginx_access_log)s
|
|
|
|
%(apache_access_log)s
|
2009-08-30 14:17:29 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
|
2013-09-08 11:02:35 +00:00
|
|
|
[suhosin]
|
2009-08-30 14:17:29 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
port = http,https
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(suhosin_log)s
|
2013-09-08 11:02:35 +00:00
|
|
|
|
2011-12-24 20:56:38 +00:00
|
|
|
|
|
|
|
[lighttpd-auth]
|
2014-01-06 22:34:39 +00:00
|
|
|
# Same as above for Apache's mod_auth
|
|
|
|
# It catches wrong authentifications
|
2011-12-24 20:56:38 +00:00
|
|
|
port = http,https
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(lighttpd_error_log)s
|
2011-12-24 20:56:38 +00:00
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
#
|
|
|
|
# Webmail and groupware servers
|
|
|
|
#
|
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
[roundcube-auth]
|
2006-10-19 20:15:24 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
port = http,https
|
2015-08-26 12:48:55 +00:00
|
|
|
logpath = %(roundcube_errors_log)s
|
2017-06-19 16:05:29 +00:00
|
|
|
# Use following line in your jail.local if roundcube logs to journal.
|
|
|
|
#backend = %(syslog_backend)s
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
|
2014-01-01 08:28:38 +00:00
|
|
|
[openwebmail]
|
|
|
|
|
|
|
|
port = http,https
|
2014-01-06 22:49:27 +00:00
|
|
|
logpath = /var/log/openwebmail.log
|
2014-01-01 08:28:38 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
|
|
|
|
[horde]
|
|
|
|
|
|
|
|
port = http,https
|
|
|
|
logpath = /var/log/horde/horde.log
|
|
|
|
|
|
|
|
|
|
|
|
[groupoffice]
|
2006-10-19 20:15:24 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
port = http,https
|
2014-01-06 22:34:39 +00:00
|
|
|
logpath = /home/groupoffice/log/info.log
|
|
|
|
|
2014-01-01 08:28:38 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
[sogo-auth]
|
2013-11-02 04:59:05 +00:00
|
|
|
# Monitor SOGo groupware server
|
2013-04-17 05:05:04 +00:00
|
|
|
# without proxy this would be:
|
|
|
|
# port = 20000
|
2013-11-12 22:16:45 +00:00
|
|
|
port = http,https
|
2013-04-17 05:05:04 +00:00
|
|
|
logpath = /var/log/sogo/sogo.log
|
|
|
|
|
2013-11-12 22:16:45 +00:00
|
|
|
|
2014-01-22 07:12:19 +00:00
|
|
|
[tine20]
|
|
|
|
|
|
|
|
logpath = /var/log/tine20/tine20.log
|
|
|
|
port = http,https
|
|
|
|
|
2013-11-12 22:16:45 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
#
|
|
|
|
# Web Applications
|
|
|
|
#
|
|
|
|
#
|
2013-11-12 22:16:45 +00:00
|
|
|
|
2015-04-27 17:10:27 +00:00
|
|
|
[drupal-auth]
|
|
|
|
|
|
|
|
port = http,https
|
|
|
|
logpath = %(syslog_daemon)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2015-04-27 17:10:27 +00:00
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
[guacamole]
|
|
|
|
|
|
|
|
port = http,https
|
|
|
|
logpath = /var/log/tomcat*/catalina.out
|
2013-05-03 06:31:45 +00:00
|
|
|
|
2014-04-17 04:21:41 +00:00
|
|
|
[monit]
|
|
|
|
#Ban clients brute-forcing the monit gui login
|
|
|
|
port = 2812
|
|
|
|
logpath = /var/log/monit
|
|
|
|
|
2013-10-30 09:34:06 +00:00
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
[webmin-auth]
|
|
|
|
|
|
|
|
port = 10000
|
2014-08-08 19:27:32 +00:00
|
|
|
logpath = %(syslog_authpriv)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2013-11-02 04:59:05 +00:00
|
|
|
|
|
|
|
|
2015-05-25 11:48:25 +00:00
|
|
|
[froxlor-auth]
|
|
|
|
|
|
|
|
port = http,https
|
|
|
|
logpath = %(syslog_authpriv)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2015-05-25 11:48:25 +00:00
|
|
|
|
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
#
|
|
|
|
# HTTP Proxy servers
|
|
|
|
#
|
|
|
|
#
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
[squid]
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
port = 80,443,3128,8080
|
|
|
|
logpath = /var/log/squid/access.log
|
2013-04-17 05:05:04 +00:00
|
|
|
|
|
|
|
|
2013-09-08 11:02:35 +00:00
|
|
|
[3proxy]
|
2006-09-06 21:33:18 +00:00
|
|
|
|
2013-09-08 11:02:35 +00:00
|
|
|
port = 3128
|
|
|
|
logpath = /var/log/3proxy.log
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2015-05-25 14:42:19 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
#
|
|
|
|
# FTP servers
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
[proftpd]
|
|
|
|
|
|
|
|
port = ftp,ftp-data,ftps,ftps-data
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(proftpd_log)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(proftpd_backend)s
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
[pure-ftpd]
|
|
|
|
|
|
|
|
port = ftp,ftp-data,ftps,ftps-data
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(pureftpd_log)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(pureftpd_backend)s
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
|
2014-01-06 23:49:11 +00:00
|
|
|
[gssftpd]
|
2013-04-17 05:05:04 +00:00
|
|
|
|
|
|
|
port = ftp,ftp-data,ftps,ftps-data
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(syslog_daemon)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2014-01-06 22:34:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
[wuftpd]
|
|
|
|
|
|
|
|
port = ftp,ftp-data,ftps,ftps-data
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(wuftpd_log)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(wuftpd_backend)s
|
2014-01-06 22:34:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
[vsftpd]
|
2013-04-17 05:05:04 +00:00
|
|
|
# or overwrite it in jails.local to be
|
2014-08-08 19:27:32 +00:00
|
|
|
# logpath = %(syslog_authpriv)s
|
2013-04-17 05:05:04 +00:00
|
|
|
# if you want to rely on PAM failed login attempts
|
|
|
|
# vsftpd's failregex should match both of those formats
|
2014-01-06 22:34:39 +00:00
|
|
|
port = ftp,ftp-data,ftps,ftps-data
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(vsftpd_log)s
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2013-10-30 09:34:06 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
#
|
|
|
|
# Mail servers
|
|
|
|
#
|
|
|
|
|
2013-09-08 11:02:35 +00:00
|
|
|
# ASSP SMTP Proxy Jail
|
|
|
|
[assp]
|
2007-02-12 21:50:50 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
port = smtp,465,submission
|
2013-09-08 11:02:35 +00:00
|
|
|
logpath = /root/path/to/assp/logs/maillog.txt
|
2007-02-12 21:50:50 +00:00
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
|
2013-04-23 02:42:09 +00:00
|
|
|
[courier-smtp]
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
port = smtp,465,submission
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(syslog_mail)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2006-10-17 21:13:11 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
[postfix]
|
2017-07-10 18:49:28 +00:00
|
|
|
# To use another modes set filter parameter "mode" in jail.local:
|
|
|
|
mode = more
|
|
|
|
port = smtp,465,submission
|
|
|
|
logpath = %(postfix_log)s
|
|
|
|
backend = %(postfix_backend)s
|
2014-12-31 00:06:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
[postfix-rbl]
|
|
|
|
|
2017-07-10 18:49:28 +00:00
|
|
|
filter = postfix[mode=rbl]
|
2014-12-31 00:06:17 +00:00
|
|
|
port = smtp,465,submission
|
2015-10-20 01:43:10 +00:00
|
|
|
logpath = %(postfix_log)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(postfix_backend)s
|
2014-12-31 00:06:17 +00:00
|
|
|
maxretry = 1
|
2013-04-17 05:05:04 +00:00
|
|
|
|
|
|
|
|
2014-03-02 03:33:45 +00:00
|
|
|
[sendmail-auth]
|
|
|
|
|
|
|
|
port = submission,465,smtp
|
2014-03-02 04:18:41 +00:00
|
|
|
logpath = %(syslog_mail)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2014-03-02 03:33:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
[sendmail-reject]
|
2017-03-10 21:08:03 +00:00
|
|
|
# To use more aggressive modes set filter parameter "mode" in jail.local:
|
|
|
|
# normal (default), extra or aggressive
|
|
|
|
# See "tests/files/logs/sendmail-reject" or "filter.d/sendmail-reject.conf" for usage example and details.
|
2017-12-05 15:09:18 +00:00
|
|
|
#mode = normal
|
2014-03-12 20:44:02 +00:00
|
|
|
port = smtp,465,submission
|
2014-03-02 04:18:41 +00:00
|
|
|
logpath = %(syslog_mail)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2014-03-02 03:33:45 +00:00
|
|
|
|
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
[qmail-rbl]
|
|
|
|
|
2014-01-06 23:49:11 +00:00
|
|
|
filter = qmail
|
|
|
|
port = smtp,465,submission
|
2014-01-06 22:34:39 +00:00
|
|
|
logpath = /service/qmail/log/main/current
|
|
|
|
|
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
# dovecot defaults to logging to the mail syslog facility
|
|
|
|
# but can be set by syslog_facility in the dovecot configuration.
|
|
|
|
[dovecot]
|
2013-01-31 19:39:59 +00:00
|
|
|
|
2013-11-29 22:52:32 +00:00
|
|
|
port = pop3,pop3s,imap,imaps,submission,465,sieve
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(dovecot_log)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(dovecot_backend)s
|
2013-02-11 16:14:29 +00:00
|
|
|
|
2013-10-30 09:34:06 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
[sieve]
|
|
|
|
|
|
|
|
port = smtp,465,submission
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(dovecot_log)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(dovecot_backend)s
|
2014-01-06 22:34:39 +00:00
|
|
|
|
|
|
|
|
2013-11-24 05:36:06 +00:00
|
|
|
[solid-pop3d]
|
2013-10-30 09:34:06 +00:00
|
|
|
|
2013-11-29 22:51:30 +00:00
|
|
|
port = pop3,pop3s
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(solidpop3d_log)s
|
2009-08-30 14:17:29 +00:00
|
|
|
|
|
|
|
|
2013-09-08 11:02:35 +00:00
|
|
|
[exim]
|
2017-12-05 15:09:18 +00:00
|
|
|
# see filter.d/exim.conf for further modes supported from filter:
|
|
|
|
#mode = normal
|
2014-01-06 22:34:39 +00:00
|
|
|
port = smtp,465,submission
|
2014-07-08 15:09:25 +00:00
|
|
|
logpath = %(exim_main_log)s
|
2013-02-11 16:14:29 +00:00
|
|
|
|
2014-03-02 05:11:53 +00:00
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
[exim-spam]
|
2014-03-02 05:11:53 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
port = smtp,465,submission
|
2014-07-08 15:09:25 +00:00
|
|
|
logpath = %(exim_main_log)s
|
2009-08-30 14:17:29 +00:00
|
|
|
|
|
|
|
|
2014-01-05 12:41:49 +00:00
|
|
|
[kerio]
|
2014-03-02 05:11:53 +00:00
|
|
|
|
2014-01-05 12:41:49 +00:00
|
|
|
port = imap,smtp,imaps,465
|
|
|
|
logpath = /opt/kerio/mailserver/store/logs/security.log
|
|
|
|
|
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
#
|
|
|
|
# Mail servers authenticators: might be used for smtp,ftp,imap servers, so
|
|
|
|
# all relevant ports get banned
|
|
|
|
#
|
|
|
|
|
2013-04-23 02:42:09 +00:00
|
|
|
[courier-auth]
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2017-11-03 12:43:33 +00:00
|
|
|
port = smtp,465,submission,imap,imaps,pop3,pop3s
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(syslog_mail)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2013-04-17 05:05:04 +00:00
|
|
|
|
|
|
|
|
2017-07-11 09:57:48 +00:00
|
|
|
[postfix-sasl]
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2017-07-10 18:49:28 +00:00
|
|
|
filter = postfix[mode=auth]
|
2017-11-03 12:43:33 +00:00
|
|
|
port = smtp,465,submission,imap,imaps,pop3,pop3s
|
2013-04-17 05:05:04 +00:00
|
|
|
# You might consider monitoring /var/log/mail.warn instead if you are
|
|
|
|
# running postfix since it would provide the same log lines at the
|
|
|
|
# "warn" level but overall at the smaller filesize.
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(postfix_log)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(postfix_backend)s
|
2013-04-17 05:05:04 +00:00
|
|
|
|
|
|
|
|
2013-09-08 11:02:35 +00:00
|
|
|
[perdition]
|
|
|
|
|
2017-11-03 12:43:33 +00:00
|
|
|
port = imap,imaps,pop3,pop3s
|
2014-08-08 19:27:32 +00:00
|
|
|
logpath = %(syslog_mail)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2013-09-08 11:02:35 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
|
2013-10-08 09:37:33 +00:00
|
|
|
[squirrelmail]
|
|
|
|
|
2017-11-03 12:43:33 +00:00
|
|
|
port = smtp,465,submission,imap,imap2,imaps,pop3,pop3s,http,https,socks
|
2013-10-08 09:37:33 +00:00
|
|
|
logpath = /var/lib/squirrelmail/prefs/squirrelmail_access_log
|
|
|
|
|
2014-01-12 09:15:34 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
[cyrus-imap]
|
|
|
|
|
2017-11-03 12:43:33 +00:00
|
|
|
port = imap,imaps
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(syslog_mail)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2014-01-06 22:34:39 +00:00
|
|
|
|
|
|
|
|
2014-01-07 00:27:54 +00:00
|
|
|
[uwimap-auth]
|
|
|
|
|
2017-11-03 12:43:33 +00:00
|
|
|
port = imap,imaps
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(syslog_mail)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2014-01-07 00:27:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
2013-04-17 05:05:04 +00:00
|
|
|
#
|
|
|
|
# DNS servers
|
|
|
|
#
|
2007-08-08 22:49:58 +00:00
|
|
|
|
|
|
|
|
2010-06-29 01:34:08 +00:00
|
|
|
# !!! WARNING !!!
|
2010-09-27 13:18:32 +00:00
|
|
|
# Since UDP is connection-less protocol, spoofing of IP and imitation
|
2010-06-29 01:34:08 +00:00
|
|
|
# of illegal actions is way too simple. Thus enabling of this filter
|
|
|
|
# might provide an easy way for implementing a DoS against a chosen
|
|
|
|
# victim. See
|
|
|
|
# http://nion.modprobe.de/blog/archives/690-fail2ban-+-dns-fail.html
|
|
|
|
# Please DO NOT USE this jail unless you know what you are doing.
|
|
|
|
#
|
2013-10-30 10:12:16 +00:00
|
|
|
# IMPORTANT: see filter.d/named-refused for instructions to enable logging
|
|
|
|
# This jail blocks UDP traffic for DNS requests.
|
2010-06-29 01:34:08 +00:00
|
|
|
# [named-refused-udp]
|
|
|
|
#
|
|
|
|
# filter = named-refused
|
2013-04-17 05:05:04 +00:00
|
|
|
# port = domain,953
|
|
|
|
# protocol = udp
|
2010-06-29 01:34:08 +00:00
|
|
|
# logpath = /var/log/named/security.log
|
2007-08-08 22:49:58 +00:00
|
|
|
|
2013-10-30 10:12:16 +00:00
|
|
|
# IMPORTANT: see filter.d/named-refused for instructions to enable logging
|
2007-08-08 22:49:58 +00:00
|
|
|
# This jail blocks TCP traffic for DNS requests.
|
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
[named-refused]
|
2007-08-08 22:49:58 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
port = domain,953
|
2007-08-27 21:03:33 +00:00
|
|
|
logpath = /var/log/named/security.log
|
2007-08-08 22:49:58 +00:00
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
|
|
|
|
[nsd]
|
|
|
|
|
|
|
|
port = 53
|
|
|
|
action = %(banaction)s[name=%(__name__)s-tcp, port="%(port)s", protocol="tcp", chain="%(chain)s", actname=%(banaction)s-tcp]
|
|
|
|
%(banaction)s[name=%(__name__)s-udp, port="%(port)s", protocol="udp", chain="%(chain)s", actname=%(banaction)s-udp]
|
|
|
|
logpath = /var/log/nsd.log
|
|
|
|
|
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
#
|
2014-03-24 13:16:52 +00:00
|
|
|
# Miscellaneous
|
2013-04-17 05:05:04 +00:00
|
|
|
#
|
|
|
|
|
2013-04-29 22:40:18 +00:00
|
|
|
[asterisk]
|
2012-02-28 17:03:16 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
port = 5060,5061
|
2013-04-29 22:40:18 +00:00
|
|
|
action = %(banaction)s[name=%(__name__)s-tcp, port="%(port)s", protocol="tcp", chain="%(chain)s", actname=%(banaction)s-tcp]
|
|
|
|
%(banaction)s[name=%(__name__)s-udp, port="%(port)s", protocol="udp", chain="%(chain)s", actname=%(banaction)s-udp]
|
|
|
|
%(mta)s-whois[name=%(__name__)s, dest="%(destemail)s"]
|
2013-10-09 22:41:05 +00:00
|
|
|
logpath = /var/log/asterisk/messages
|
|
|
|
maxretry = 10
|
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
|
2014-01-07 00:27:54 +00:00
|
|
|
[freeswitch]
|
|
|
|
|
|
|
|
port = 5060,5061
|
2013-04-29 22:40:18 +00:00
|
|
|
action = %(banaction)s[name=%(__name__)s-tcp, port="%(port)s", protocol="tcp", chain="%(chain)s", actname=%(banaction)s-tcp]
|
|
|
|
%(banaction)s[name=%(__name__)s-udp, port="%(port)s", protocol="udp", chain="%(chain)s", actname=%(banaction)s-udp]
|
|
|
|
%(mta)s-whois[name=%(__name__)s, dest="%(destemail)s"]
|
2014-01-07 00:27:54 +00:00
|
|
|
logpath = /var/log/freeswitch.log
|
|
|
|
maxretry = 10
|
|
|
|
|
|
|
|
|
2013-11-29 23:00:59 +00:00
|
|
|
# To log wrong MySQL access attempts add to /etc/my.cnf in [mysqld] or
|
|
|
|
# equivalent section:
|
2013-03-24 14:52:58 +00:00
|
|
|
# log-warning = 2
|
2014-03-02 05:11:53 +00:00
|
|
|
#
|
|
|
|
# for syslog (daemon facility)
|
2013-11-29 23:00:59 +00:00
|
|
|
# [mysqld_safe]
|
|
|
|
# syslog
|
2014-03-02 05:11:53 +00:00
|
|
|
#
|
|
|
|
# for own logfile
|
|
|
|
# [mysqld]
|
|
|
|
# log-error=/var/log/mysqld.log
|
|
|
|
[mysqld-auth]
|
2013-10-09 23:00:20 +00:00
|
|
|
|
2013-11-29 23:00:59 +00:00
|
|
|
port = 3306
|
2014-03-02 05:11:53 +00:00
|
|
|
logpath = %(mysql_log)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(mysql_backend)s
|
2013-03-24 14:52:58 +00:00
|
|
|
|
|
|
|
|
2016-11-28 17:51:23 +00:00
|
|
|
# Log wrong MongoDB auth (for details see filter 'filter.d/mongodb-auth.conf')
|
2016-11-10 05:29:42 +00:00
|
|
|
[mongodb-auth]
|
2016-11-28 17:51:23 +00:00
|
|
|
# change port when running with "--shardsvr" or "--configsvr" runtime operation
|
2016-11-10 05:29:42 +00:00
|
|
|
port = 27017
|
|
|
|
logpath = /var/log/mongodb/mongodb.log
|
|
|
|
|
|
|
|
|
2012-01-27 04:28:44 +00:00
|
|
|
# Jail for more extended banning of persistent abusers
|
2015-03-22 00:50:03 +00:00
|
|
|
# !!! WARNINGS !!!
|
|
|
|
# 1. Make sure that your loglevel specified in fail2ban.conf/.local
|
|
|
|
# is not at DEBUG level -- which might then cause fail2ban to fall into
|
|
|
|
# an infinite loop constantly feeding itself with non-informative lines
|
|
|
|
# 2. Increase dbpurgeage defined in fail2ban.conf to e.g. 648000 (7.5 days)
|
|
|
|
# to maintain entries for failed logins for sufficient amount of time
|
2012-01-27 04:28:44 +00:00
|
|
|
[recidive]
|
|
|
|
|
|
|
|
logpath = /var/log/fail2ban.log
|
2015-10-30 14:36:18 +00:00
|
|
|
banaction = %(banaction_allports)s
|
2014-10-23 23:32:04 +00:00
|
|
|
bantime = 1w
|
|
|
|
findtime = 1d
|
2013-05-03 06:42:10 +00:00
|
|
|
|
2013-10-30 09:34:06 +00:00
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
# Generic filter for PAM. Has to be used with action which bans all
|
|
|
|
# ports such as iptables-allports, shorewall
|
2013-09-25 21:59:37 +00:00
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
[pam-generic]
|
|
|
|
# pam-generic filter can be customized to monitor specific subset of 'tty's
|
2015-10-30 14:36:18 +00:00
|
|
|
banaction = %(banaction_allports)s
|
2014-08-08 19:27:32 +00:00
|
|
|
logpath = %(syslog_authpriv)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2013-10-30 09:34:06 +00:00
|
|
|
|
2013-10-30 09:19:41 +00:00
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
[xinetd-fail]
|
2013-10-30 09:34:06 +00:00
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
banaction = iptables-multiport-log
|
2014-08-08 19:27:32 +00:00
|
|
|
logpath = %(syslog_daemon)s
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2013-11-02 04:59:05 +00:00
|
|
|
maxretry = 2
|
2014-01-06 22:34:39 +00:00
|
|
|
|
|
|
|
|
2014-01-07 00:27:54 +00:00
|
|
|
# stunnel - need to set port for this
|
|
|
|
[stunnel]
|
|
|
|
|
|
|
|
logpath = /var/log/stunnel4/stunnel.log
|
|
|
|
|
|
|
|
|
|
|
|
[ejabberd-auth]
|
|
|
|
|
|
|
|
port = 5222
|
|
|
|
logpath = /var/log/ejabberd/ejabberd.log
|
2014-01-07 09:50:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
[counter-strike]
|
|
|
|
|
|
|
|
logpath = /opt/cstrike/logs/L[0-9]*.log
|
|
|
|
# Firewall: http://www.cstrike-planet.com/faq/6
|
|
|
|
tcpport = 27030,27031,27032,27033,27034,27035,27036,27037,27038,27039
|
|
|
|
udpport = 1200,27000,27001,27002,27003,27004,27005,27006,27007,27008,27009,27010,27011,27012,27013,27014,27015
|
|
|
|
action = %(banaction)s[name=%(__name__)s-tcp, port="%(tcpport)s", protocol="tcp", chain="%(chain)s", actname=%(banaction)s-tcp]
|
|
|
|
%(banaction)s[name=%(__name__)s-udp, port="%(udpport)s", protocol="udp", chain="%(chain)s", actname=%(banaction)s-udp]
|
2014-02-03 20:51:49 +00:00
|
|
|
|
|
|
|
# consider low maxretry and a long bantime
|
|
|
|
# nobody except your own Nagios server should ever probe nrpe
|
|
|
|
[nagios]
|
2014-02-13 20:14:40 +00:00
|
|
|
|
2014-08-08 19:27:32 +00:00
|
|
|
logpath = %(syslog_daemon)s ; nrpe.cfg may define a different log_facility
|
2015-10-08 01:50:03 +00:00
|
|
|
backend = %(syslog_backend)s
|
2014-02-03 20:51:49 +00:00
|
|
|
maxretry = 1
|
2014-06-10 01:37:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
[oracleims]
|
|
|
|
# see "oracleims" filter file for configuration requirement for Oracle IMS v6 and above
|
|
|
|
logpath = /opt/sun/comms/messaging64/log/mail.log_current
|
2015-10-30 14:36:18 +00:00
|
|
|
banaction = %(banaction_allports)s
|
2014-10-04 13:08:12 +00:00
|
|
|
|
2014-07-02 11:52:06 +00:00
|
|
|
[directadmin]
|
|
|
|
logpath = /var/log/directadmin/login.log
|
|
|
|
port = 2222
|
2014-10-25 16:15:34 +00:00
|
|
|
|
2014-10-04 13:08:12 +00:00
|
|
|
[portsentry]
|
|
|
|
logpath = /var/lib/portsentry/portsentry.history
|
2014-10-29 17:08:51 +00:00
|
|
|
maxretry = 1
|
2015-07-10 14:22:43 +00:00
|
|
|
|
2015-07-13 14:46:04 +00:00
|
|
|
[pass2allow-ftp]
|
|
|
|
# this pass2allow example allows FTP traffic after successful HTTP authentication
|
2015-07-13 16:12:04 +00:00
|
|
|
port = ftp,ftp-data,ftps,ftps-data
|
2016-11-24 18:30:10 +00:00
|
|
|
# knocking_url variable must be overridden to some secret value in jail.local
|
|
|
|
knocking_url = /knocking/
|
|
|
|
filter = apache-pass[knocking_url="%(knocking_url)s"]
|
2015-07-10 14:22:43 +00:00
|
|
|
# access log of the website with HTTP auth
|
2015-07-13 16:12:04 +00:00
|
|
|
logpath = %(apache_access_log)s
|
|
|
|
blocktype = RETURN
|
|
|
|
returntype = DROP
|
2017-09-07 16:51:08 +00:00
|
|
|
action = %(action_)s[blocktype=%(blocktype)s, returntype=%(returntype)s]
|
2014-10-23 23:32:04 +00:00
|
|
|
bantime = 1h
|
2015-07-13 16:12:04 +00:00
|
|
|
maxretry = 1
|
|
|
|
findtime = 1
|
2015-11-29 15:56:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
[murmur]
|
|
|
|
# AKA mumble-server
|
|
|
|
port = 64738
|
|
|
|
action = %(banaction)s[name=%(__name__)s-tcp, port="%(port)s", protocol=tcp, chain="%(chain)s", actname=%(banaction)s-tcp]
|
|
|
|
%(banaction)s[name=%(__name__)s-udp, port="%(port)s", protocol=udp, chain="%(chain)s", actname=%(banaction)s-udp]
|
|
|
|
logpath = /var/log/mumble-server/mumble-server.log
|
2015-12-30 00:35:03 +00:00
|
|
|
|
|
|
|
|
2015-12-30 00:43:52 +00:00
|
|
|
[screensharingd]
|
2015-10-28 22:11:11 +00:00
|
|
|
# For Mac OS Screen Sharing Service (VNC)
|
2015-10-29 16:03:01 +00:00
|
|
|
logpath = /var/log/system.log
|
2015-12-30 00:43:52 +00:00
|
|
|
logencoding = utf-8
|
2015-12-31 01:16:23 +00:00
|
|
|
|
|
|
|
[haproxy-http-auth]
|
|
|
|
# HAProxy by default doesn't log to file you'll need to set it up to forward
|
|
|
|
# logs to a syslog server which would then write them to disk.
|
|
|
|
# See "haproxy-http-auth" filter for a brief cautionary note when setting
|
|
|
|
# maxretry and findtime.
|
|
|
|
logpath = /var/log/haproxy.log
|
2016-07-08 01:50:57 +00:00
|
|
|
|
|
|
|
[slapd]
|
|
|
|
port = ldap,ldaps
|
|
|
|
logpath = /var/log/slapd.log
|
2017-01-20 07:44:20 +00:00
|
|
|
|
|
|
|
[domino-smtp]
|
|
|
|
port = smtp,ssmtp
|
|
|
|
logpath = /home/domino01/data/IBM_TECHNICAL_SUPPORT/console.log
|
2017-08-22 16:00:48 +00:00
|
|
|
|
|
|
|
[phpmyadmin-syslog]
|
|
|
|
port = http,https
|
|
|
|
logpath = %(syslog_authpriv)s
|
|
|
|
backend = %(syslog_backend)s
|
2016-03-29 10:25:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
[zoneminder]
|
|
|
|
# Zoneminder HTTP/HTTPS web interface auth
|
|
|
|
# Logs auth failures to apache2 error log
|
|
|
|
port = http,https
|
2016-04-01 11:16:30 +00:00
|
|
|
logpath = %(apache_error_log)s
|
2016-03-29 10:25:25 +00:00
|
|
|
|