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]
|
|
|
|
# bantime = 3600
|
|
|
|
#
|
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
|
|
|
#
|
|
|
|
|
2014-06-06 16:44:59 +00:00
|
|
|
# "bantime.increment" allows to use database for searching of previously banned ip's to increase a
|
2014-04-29 16:01:57 +00:00
|
|
|
# default ban time using special formula, default it is banTime * 1, 2, 4, 8, 16, 32...
|
2014-06-06 16:44:59 +00:00
|
|
|
#bantime.increment = true
|
2014-05-06 14:07:16 +00:00
|
|
|
|
2014-06-06 16:44:59 +00:00
|
|
|
# "bantime.rndtime" is the max number of seconds using for mixing with random time
|
2014-04-29 16:01:57 +00:00
|
|
|
# to prevent "clever" botnets calculate exact time IP can be unbanned again:
|
2014-06-06 16:44:59 +00:00
|
|
|
#bantime.rndtime = 5*60
|
2014-05-06 14:07:16 +00:00
|
|
|
|
2014-06-06 16:44:59 +00:00
|
|
|
# "bantime.maxtime" is the max number of seconds using the ban time can reach (don't grows further)
|
|
|
|
#bantime.maxtime =
|
2014-05-06 14:07:16 +00:00
|
|
|
|
2014-06-06 16:44:59 +00:00
|
|
|
# "bantime.factor" is a coefficient to calculate exponent growing of the formula or common multiplier,
|
2014-05-07 11:28:04 +00:00
|
|
|
# default value of factor is 1 and with default value of formula, the ban time
|
2014-04-29 16:01:57 +00:00
|
|
|
# grows by 1, 2, 4, 8, 16 ...
|
2014-06-06 16:44:59 +00:00
|
|
|
#bantime.factor = 1
|
2014-05-06 14:07:16 +00:00
|
|
|
|
2014-06-06 16:44:59 +00:00
|
|
|
# "bantime.formula" used by default to calculate next value of ban time, default value bellow,
|
2014-05-07 11:28:04 +00:00
|
|
|
# the same ban time growing will be reached by multipliers 1, 2, 4, 8, 16, 32...
|
2014-06-06 16:44:59 +00:00
|
|
|
#bantime.formula = ban.Time * (1<<(ban.Count if ban.Count<20 else 20)) * banFactor
|
2014-05-07 11:28:04 +00:00
|
|
|
#
|
|
|
|
# more aggressive example of formula has the same values only for factor "2.0 / 2.885385" :
|
2014-06-06 16:44:59 +00:00
|
|
|
#bantime.formula = ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)
|
2014-05-06 14:07:16 +00:00
|
|
|
|
2014-06-06 16:44:59 +00:00
|
|
|
# "bantime.multipliers" used to calculate next value of ban time instead of formula, coresponding
|
|
|
|
# previously ban count and given "bantime.factor" (for multipliers default is 1);
|
2014-05-06 14:07:16 +00:00
|
|
|
# following example grows ban time by 1, 2, 4, 8, 16 ... and if last ban count greater as multipliers count,
|
|
|
|
# always used last multiplier (64 in example), for factor '1' and original ban time 600 - 10.6 hours
|
2014-06-06 16:44:59 +00:00
|
|
|
#bantime.multipliers = 1 2 4 8 16 32 64
|
2014-05-06 14:07:16 +00:00
|
|
|
# following example can be used for small initial ban time (bantime=60) - it grows more aggressive at begin,
|
|
|
|
# for bantime=60 the multipliers are minutes and equal: 1 min, 5 min, 30 min, 1 hour, 5 hour, 12 hour, 1 day, 2 day
|
2014-06-06 16:44:59 +00:00
|
|
|
#bantime.multipliers = 1 5 30 60 300 720 1440 2880
|
2014-05-06 14:07:16 +00:00
|
|
|
|
2014-06-06 16:44:59 +00:00
|
|
|
# "bantime.overalljails" (if true) specifies the search of IP in the database will be executed
|
2014-04-29 16:01:57 +00:00
|
|
|
# cross over all jails, if false (dafault), only current jail of the ban IP will be searched
|
2014-06-06 16:44:59 +00:00
|
|
|
#bantime.overalljails = false
|
2014-04-29 16:01:57 +00:00
|
|
|
|
|
|
|
# --------------------
|
|
|
|
|
2006-12-18 22:33:01 +00:00
|
|
|
# "ignoreip" can be an IP address, a CIDR mask or a DNS host. Fail2ban will not
|
|
|
|
# ban a host which matches an address in this list. Several addresses can be
|
|
|
|
# defined using space separator.
|
2010-09-27 13:10:48 +00:00
|
|
|
ignoreip = 127.0.0.1/8
|
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.
|
2006-09-17 22:38:44 +00:00
|
|
|
bantime = 600
|
2006-12-18 22:33:01 +00:00
|
|
|
|
|
|
|
# A host is banned if it has generated "maxretry" during the last "findtime"
|
|
|
|
# seconds.
|
2006-11-18 15:15:58 +00:00
|
|
|
findtime = 600
|
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.
|
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.
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
# "filter" defines the filter to use by the jail.
|
|
|
|
# By default jails have names matching their filter name
|
|
|
|
#
|
|
|
|
filter = %(__name__)s
|
|
|
|
|
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
|
|
|
|
sender = root@localhost
|
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
|
|
|
|
|
|
|
|
# Specify chain where jumps would need to be added in iptables-* actions
|
|
|
|
chain = INPUT
|
|
|
|
|
2013-04-23 17:55:26 +00:00
|
|
|
# Ports to be banned
|
|
|
|
# Usually should be overridden in a particular jail
|
|
|
|
port = 0:65535
|
|
|
|
|
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
|
|
|
|
|
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"]
|
2013-04-23 02:23:23 +00:00
|
|
|
%(mta)s-whois[name=%(__name__)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"]
|
2013-04-23 02:23:23 +00:00
|
|
|
%(mta)s-whois-lines[name=%(__name__)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"]
|
|
|
|
|
|
|
|
|
|
|
|
# Report block via blocklist.de fail2ban reporting service API
|
|
|
|
#
|
|
|
|
# See the IMPORTANT note in action.d/blocklist_de.conf for when to
|
|
|
|
# use this action. Create a file jail.d/blocklist_de.local containing
|
|
|
|
# [Init]
|
|
|
|
# blocklist_de_apikey = {api key from registration]
|
|
|
|
#
|
|
|
|
action_blocklist_de = blocklist_de[email="%(sender)s", service=%(filter)s, apikey="%(blocklist_de_apikey)s"]
|
|
|
|
|
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.
|
|
|
|
#
|
2014-03-13 19:58:32 +00:00
|
|
|
action_badips = badips.py[category="%(name)s", banaction="%(banaction)s"]
|
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]
|
|
|
|
|
2013-04-23 02:23:23 +00:00
|
|
|
port = ssh
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(sshd_log)s
|
|
|
|
|
2006-09-06 21:33:18 +00:00
|
|
|
|
2013-04-17 05:05:04 +00:00
|
|
|
[sshd-ddos]
|
2013-11-02 04:59:05 +00:00
|
|
|
# This jail corresponds to the standard configuration in Fail2ban.
|
|
|
|
# The mail-whois action send a notification e-mail with a whois request
|
|
|
|
# in the body.
|
2013-04-23 02:23:23 +00:00
|
|
|
port = ssh
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(sshd_log)s
|
|
|
|
|
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
|
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-11-02 04:59:05 +00:00
|
|
|
maxretry = 5
|
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
|
2007-02-12 21:50:50 +00:00
|
|
|
bantime = 172800
|
|
|
|
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-04-17 05:05:04 +00:00
|
|
|
maxretry = 6
|
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
|
|
|
|
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
|
|
|
|
|
2014-09-26 15:37:50 +00:00
|
|
|
[apache-shellshock]
|
|
|
|
|
|
|
|
port = http,https
|
|
|
|
logpath = $(apache_error_log)s
|
|
|
|
maxretry = 1
|
2013-12-28 22:28:11 +00:00
|
|
|
|
2013-11-12 22:16:45 +00:00
|
|
|
[nginx-http-auth]
|
|
|
|
|
|
|
|
ports = http,https
|
2014-01-25 12:25:54 +00:00
|
|
|
logpath = %(nginx_error_log)s
|
2013-11-12 22:16:45 +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-01-25 12:25:54 +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
|
|
|
|
logpath = /var/log/roundcube/userlogins
|
|
|
|
|
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
|
|
|
|
maxretry = 5
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
filter = monit
|
|
|
|
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
|
2013-11-02 04:59:05 +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
|
|
|
|
|
|
|
#
|
|
|
|
# FTP servers
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
[proftpd]
|
|
|
|
|
|
|
|
port = ftp,ftp-data,ftps,ftps-data
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(proftpd_log)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
|
2013-04-17 05:05:04 +00:00
|
|
|
maxretry = 6
|
|
|
|
|
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
|
2014-01-06 22:34:39 +00:00
|
|
|
maxretry = 6
|
|
|
|
|
|
|
|
|
|
|
|
[wuftpd]
|
|
|
|
|
|
|
|
port = ftp,ftp-data,ftps,ftps-data
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(wuftpd_log)s
|
2014-01-06 22:34:39 +00:00
|
|
|
maxretry = 6
|
|
|
|
|
|
|
|
|
|
|
|
[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
|
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]
|
|
|
|
|
2014-01-06 22:34:39 +00:00
|
|
|
port = smtp,465,submission
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(postfix_log)s
|
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
|
2014-03-02 03:33:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
[sendmail-reject]
|
|
|
|
|
2014-03-12 20:44:02 +00:00
|
|
|
port = smtp,465,submission
|
2014-03-02 04:18:41 +00:00
|
|
|
logpath = %(syslog_mail)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
|
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
|
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]
|
2013-02-11 16:14:29 +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
|
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
|
|
|
|
2014-01-06 23:25:29 +00:00
|
|
|
port = smtp,465,submission,imap3,imaps,pop3,pop3s
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(syslog_mail)s
|
2013-04-17 05:05:04 +00:00
|
|
|
|
|
|
|
|
2013-11-02 04:59:05 +00:00
|
|
|
[postfix-sasl]
|
2013-04-17 05:05:04 +00:00
|
|
|
|
2014-01-06 23:25:29 +00:00
|
|
|
port = smtp,465,submission,imap3,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
|
2013-04-17 05:05:04 +00:00
|
|
|
|
|
|
|
|
2013-09-08 11:02:35 +00:00
|
|
|
[perdition]
|
|
|
|
|
2014-01-06 23:25:29 +00:00
|
|
|
port = imap3,imaps,pop3,pop3s
|
2014-08-08 19:27:32 +00:00
|
|
|
logpath = %(syslog_mail)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]
|
|
|
|
|
2014-01-12 09:15:34 +00:00
|
|
|
port = smtp,465,submission,imap2,imap3,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]
|
|
|
|
|
|
|
|
port = imap3,imaps
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(syslog_mail)s
|
2014-01-06 22:34:39 +00:00
|
|
|
|
|
|
|
|
2014-01-07 00:27:54 +00:00
|
|
|
[uwimap-auth]
|
|
|
|
|
|
|
|
port = imap3,imaps
|
2014-02-19 21:20:02 +00:00
|
|
|
logpath = %(syslog_mail)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
|
2013-10-09 23:00:20 +00:00
|
|
|
maxretry = 5
|
2013-03-24 14:52:58 +00:00
|
|
|
|
|
|
|
|
2012-01-27 04:28:44 +00:00
|
|
|
# Jail for more extended banning of persistent abusers
|
2012-02-19 01:15:42 +00:00
|
|
|
# !!! WARNING !!!
|
|
|
|
# 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
|
2012-01-27 04:28:44 +00:00
|
|
|
[recidive]
|
|
|
|
|
|
|
|
logpath = /var/log/fail2ban.log
|
2013-11-02 04:59:05 +00:00
|
|
|
port = all
|
|
|
|
protocol = all
|
2012-07-31 18:05:42 +00:00
|
|
|
bantime = 604800 ; 1 week
|
|
|
|
findtime = 86400 ; 1 day
|
2012-01-27 04:28:44 +00:00
|
|
|
maxretry = 5
|
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
|
|
|
|
banaction = iptables-allports
|
2014-08-08 19:27:32 +00:00
|
|
|
logpath = %(syslog_authpriv)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
|
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-02-03 20:51:49 +00:00
|
|
|
enabled = false
|
2014-08-08 19:27:32 +00:00
|
|
|
logpath = %(syslog_daemon)s ; nrpe.cfg may define a different log_facility
|
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
|
|
|
|
enabled = false
|
|
|
|
logpath = /opt/sun/comms/messaging64/log/mail.log_current
|
|
|
|
maxretry = 6
|
|
|
|
banaction = iptables-allports
|
2014-07-02 11:52:06 +00:00
|
|
|
|
|
|
|
[directadmin]
|
|
|
|
enabled = false
|
|
|
|
logpath = /var/log/directadmin/login.log
|
|
|
|
port = 2222
|