initial commit of file from CVS for smeserver-fail2ban on Sat Sep 7 19:53:17 AEST 2024
This commit is contained in:
13
root/etc/fail2ban/action.d/smeserver-iptables.conf
Normal file
13
root/etc/fail2ban/action.d/smeserver-iptables.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
[Definition]
|
||||
|
||||
actionstart =
|
||||
actionstop =
|
||||
actioncheck =
|
||||
actionban = /sbin/e-smith/smeserver-fail2ban --host=<ip> --proto=<protocol> --port=<port> --bantime=<bantime>
|
||||
actionunban = /sbin/e-smith/smeserver-fail2ban --host=<ip> --unban --proto=<protocol> --port=<port>
|
||||
|
||||
[Init]
|
||||
protocol = undef
|
||||
port = undef
|
||||
bantime = undef
|
21
root/etc/fail2ban/action.d/smeserver-sendmail.conf
Normal file
21
root/etc/fail2ban/action.d/smeserver-sendmail.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
[Definition]
|
||||
|
||||
actionstart =
|
||||
actionstop =
|
||||
actioncheck =
|
||||
actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip>
|
||||
From: Fail2Ban <<sender>>
|
||||
To: <dest>\n
|
||||
Hi,\n
|
||||
The IP <ip> has just been banned by Fail2Ban after
|
||||
<failures> attempts against <name>.\n
|
||||
Regards,\n
|
||||
Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>
|
||||
actionunban =
|
||||
|
||||
[Init]
|
||||
name = default
|
||||
dest = root
|
||||
sender = fail2ban
|
||||
|
Reference in New Issue
Block a user