From 6bd833947dcf9e6de263b7937d57ac800d05339d Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Thu, 28 May 2015 12:04:08 +0000 Subject: Fixed showbanned function --- bash/.bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bash/.bashrc') diff --git a/bash/.bashrc b/bash/.bashrc index 6223964..2a1df14 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -78,9 +78,9 @@ fi if exists pfctl; then showbanned () { - for table in $(sudo pfctl -s Tables 2> /dev/null); do - echo "$table"; - sudo pfctl -t $table -T show 2> /dev/null; + for table in "fail2ban"; do + banned=$(sudo pfctl -t $table -T show 2> /dev/null) + echo -e "$table\n$banned" done } fi -- cgit v1.2.3