This is not the only way to unban a jailed ip.
authorpatrick nsukami <ndkpatt@gmail.com>
Sun, 28 Jun 2015 02:40:16 +0000 (02:40 +0000)
committerpatrick nsukami <ndkpatt@gmail.com>
Sun, 28 Jun 2015 02:40:16 +0000 (02:40 +0000)
.bash_function

index a32bfe8..acfa716 100644 (file)
@@ -2,6 +2,11 @@
 # my weird function file
 # lots of this coming from http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming
 
+my_fail2ban_unban_ip(){
+    local ip=$1
+    sudo iptables -D fail2ban-ssh -s $ip -j DROP
+}
+
 my_bak() { cp "$1" "$1_`date +%Y-%m-%d_%H-%M-%S`" ; }
 
 my_whois_onport(){