Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Fail2ban
(view source)
Revision as of 09:43, 2 August 2016
7 bytes removed
,
09:43, 2 August 2016
→Check the fail2ban banned IP for all active jails
Line 361:
Line 361:
for SERVI in $(fail2ban-client status|grep 'Jail list'|cut -d':' -f2|sed 's/, / /g'| sed -e 's/^[ \t]*//')
for SERVI in $(fail2ban-client status|grep 'Jail list'|cut -d':' -f2|sed 's/, / /g'| sed -e 's/^[ \t]*//')
do
do
−
fail2ban-client status $SERVI |grep -E '
Banned
IP list|Status for the jail'
+
fail2ban-client status $SERVI |grep -E 'IP list|Status for the jail'
done
done
then do
then do
Unnilennium
Super Admin, Wiki & Docs Team,
Bureaucrats
,
Interface administrators
,
Administrators
3,254
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search