Skip to content

Commit 073c475

Browse files
committed
Add missed fail2ban action and filter conf.
1 parent 4bd186e commit 073c475

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Fail2Ban configuration file for hestia
2+
3+
[Definition]
4+
5+
actionstart = /usr/local/hestia/bin/v-add-firewall-chain <name>
6+
actionstop = /usr/local/hestia/bin/v-delete-firewall-chain <name>
7+
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
8+
actionban = /usr/local/hestia/bin/v-add-firewall-ban <ip> <name>
9+
actionunban = /usr/local/hestia/bin/v-delete-firewall-ban <ip> <name>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Fail2Ban filter for unsuccessful hestia authentication attempts
2+
#
3+
4+
[INCLUDES]
5+
before = common.conf
6+
7+
[Definition]
8+
failregex = .* <HOST> failed to login
9+
ignoreregex =
10+

0 commit comments

Comments
 (0)