Created
April 3, 2012 19:30
-
-
Save stefanocudini/2294949 to your computer and use it in GitHub Desktop.
unban ip from all chains in iptables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| chains=$(iptables -L | grep "Chain fail2ban" | cut -d' ' -f2) | |
| for chain in $chains | |
| do | |
| iptables -D $chain -s $1 -j DROP | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment