Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Print status for all fail2ban jails.
- function f2bstall() {
- JAILS=($(fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'))
- for JAIL in ${JAILS[@]}
- do
- echo "--------------- 👀 JAIL STATUS: $JAIL ... ---------------"
- fail2ban-client status $JAIL
- echo "--------------- ... ---------------"
- done
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement