diff options
| author | 2015-05-28 12:04:08 +0000 | |
|---|---|---|
| committer | 2015-05-28 12:04:08 +0000 | |
| commit | 6bd833947dcf9e6de263b7937d57ac800d05339d (patch) | |
| tree | c847efbe6b554acfbd75d0d3f0602c4a97d3ee5b /bash | |
| parent | c0d9f47e3cfa326458a37f0246eb304a3d176f49 (diff) | |
| download | dotfiles-6bd833947dcf9e6de263b7937d57ac800d05339d.tar.gz dotfiles-6bd833947dcf9e6de263b7937d57ac800d05339d.tar.bz2 dotfiles-6bd833947dcf9e6de263b7937d57ac800d05339d.zip | |
Fixed showbanned function
Diffstat (limited to 'bash')
| -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 |
