2014-08-08 15:57:30 +00:00
|
|
|
# Fail2Ban configuration file for Bytemark Symbiosis firewall
|
|
|
|
#
|
|
|
|
# Author: Yaroslav Halchenko
|
|
|
|
#
|
|
|
|
|
2015-07-24 01:53:37 +00:00
|
|
|
[INCLUDES]
|
|
|
|
|
2020-01-16 19:08:35 +00:00
|
|
|
before = iptables.conf
|
2014-08-08 15:57:30 +00:00
|
|
|
|
|
|
|
[Definition]
|
|
|
|
|
|
|
|
# Option: actionstart
|
2018-09-12 14:00:40 +00:00
|
|
|
# Notes.: command executed on demand at the first ban (or at the start of Fail2Ban if actionstart_on_demand is set to false).
|
2014-08-08 15:57:30 +00:00
|
|
|
# Values: CMD
|
|
|
|
#
|
|
|
|
actionstart =
|
|
|
|
|
|
|
|
# Option: actionstop
|
2018-09-12 14:00:40 +00:00
|
|
|
# Notes.: command executed at the stop of jail (or at the end of Fail2Ban)
|
2014-08-08 15:57:30 +00:00
|
|
|
# Values: CMD
|
|
|
|
#
|
|
|
|
actionstop =
|
|
|
|
|
|
|
|
# Option: actioncheck
|
|
|
|
# Notes.: command executed once before each actionban command
|
|
|
|
# Values: CMD
|
|
|
|
#
|
2015-07-24 01:38:10 +00:00
|
|
|
actioncheck = <iptables> -n -L <chain>
|
2014-08-08 15:57:30 +00:00
|
|
|
|
|
|
|
# Option: actionban
|
|
|
|
# Notes.: command executed when banning an IP.
|
|
|
|
# Values: CMD
|
|
|
|
#
|
|
|
|
actionban = echo 'all' >| /etc/symbiosis/firewall/blacklist.d/<ip>.auto
|
2015-07-24 01:38:10 +00:00
|
|
|
<iptables> -I <chain> 1 -s <ip> -j <blocktype>
|
2014-08-08 15:57:30 +00:00
|
|
|
|
|
|
|
# Option: actionunban
|
|
|
|
# Notes.: command executed when unbanning an IP.
|
|
|
|
# Values: CMD
|
|
|
|
#
|
|
|
|
actionunban = rm -f /etc/symbiosis/firewall/blacklist.d/<ip>.auto
|
2015-07-24 01:38:10 +00:00
|
|
|
<iptables> -D <chain> -s <ip> -j <blocktype> || :
|
2014-08-08 15:57:30 +00:00
|
|
|
|
2020-01-16 19:08:35 +00:00
|
|
|
# [TODO] Flushing is currently not implemented for symbiosis blacklist.d
|
|
|
|
#
|
|
|
|
actionflush =
|
|
|
|
|
|
|
|
|
2014-08-08 15:57:30 +00:00
|
|
|
[Init]
|
|
|
|
|
|
|
|
# Option: chain
|
|
|
|
# Notes specifies the iptables chain to which the fail2ban rules should be
|
|
|
|
# added to. blacklist is a chain initiated by symbiosis firewall.
|
|
|
|
# Values: STRING Default: blacklist
|
|
|
|
chain = blacklist
|
|
|
|
|
|
|
|
# Option: blocktype
|
|
|
|
# Note: This is to match default symbiosis firewall type for blacklisted IPs
|
|
|
|
# Values: STRING
|
|
|
|
blocktype = DROP
|