1 |
brianr |
1.1 |
diff -Nur smeserver-fail2ban-0.1.18.old/root/usr/bin/sfail2ban smeserver-fail2ban-0.1.18/root/usr/bin/sfail2ban |
2 |
|
|
--- smeserver-fail2ban-0.1.18.old/root/usr/bin/sfail2ban 1969-12-31 19:00:00.000000000 -0500 |
3 |
|
|
+++ smeserver-fail2ban-0.1.18/root/usr/bin/sfail2ban 2019-05-14 23:56:29.540000000 -0400 |
4 |
|
|
@@ -0,0 +1,6 @@ |
5 |
|
|
+#!/bin/bash |
6 |
|
|
+for SERVI in $(fail2ban-client status|grep 'Jail list'|cut -d':' -f2|sed 's/, / /g'| sed -e 's/^[ \t]*//') |
7 |
|
|
+do |
8 |
|
|
+fail2ban-client status $SERVI |grep -E 'IP list|Status for the jail'|sed 'N;s/\n/:/'|cut -d: -f2,4 |
9 |
|
|
+done |
10 |
|
|
+ |