diff options
Diffstat (limited to 'bash/.bashrc')
| -rw-r--r-- | bash/.bashrc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 6223964..2a1df14 100644 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -78,9 +78,9 @@ fi | |||
| 78 | if exists pfctl; then | 78 | if exists pfctl; then |
| 79 | showbanned () | 79 | showbanned () |
| 80 | { | 80 | { |
| 81 | for table in $(sudo pfctl -s Tables 2> /dev/null); do | 81 | for table in "fail2ban"; do |
| 82 | echo "$table"; | 82 | banned=$(sudo pfctl -t $table -T show 2> /dev/null) |
| 83 | sudo pfctl -t $table -T show 2> /dev/null; | 83 | echo -e "$table\n$banned" |
| 84 | done | 84 | done |
| 85 | } | 85 | } |
| 86 | fi | 86 | fi |
