initial commit of file from CVS for smeserver-fail2ban on Sat Sep 7 19:53:17 AEST 2024
This commit is contained in:
6
root/usr/bin/sfail2ban
Normal file
6
root/usr/bin/sfail2ban
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
for SERVI in $(fail2ban-client status|grep 'Jail list'|cut -d':' -f2|sed 's/, / /g'| sed -e 's/^[ \t]*//')
|
||||
do
|
||||
fail2ban-client status $SERVI |grep -E 'IP list|Status for the jail'|sed 'N;s/\n/:/'|cut -d: -f2,4
|
||||
done
|
||||
|
Reference in New Issue
Block a user