mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
Fixed Fail2ban install issues
This commit is contained in:
parent
e0876153dc
commit
f33ce7ecb2
9 changed files with 3 additions and 3 deletions
10
install/rhel/5/fail2ban/action.d/vesta.conf
Normal file
10
install/rhel/5/fail2ban/action.d/vesta.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Fail2Ban configuration file for vesta
|
||||
|
||||
[Definition]
|
||||
|
||||
actionstart = /usr/local/vesta/bin/v-add-firewall-chain <name>
|
||||
actionstop = /usr/local/vesta/bin/v-delete-firewall-chain <name>
|
||||
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
|
||||
actionban = /usr/local/vesta/bin/v-add-firewall-ban <ip> <name>
|
||||
actionunban = /usr/local/vesta/bin/v-delete-firewall-ban <ip> <name>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue