projects
/
dotfiles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbe6366
)
This is not the only way to unban a jailed ip.
author
patrick nsukami
<ndkpatt@gmail.com>
Sun, 28 Jun 2015 02:40:16 +0000
(
02:40
+0000)
committer
patrick nsukami
<ndkpatt@gmail.com>
Sun, 28 Jun 2015 02:40:16 +0000
(
02:40
+0000)
.bash_function
patch
|
blob
|
history
diff --git
a/.bash_function
b/.bash_function
index
a32bfe8
..
acfa716
100644
(file)
--- a/
.bash_function
+++ b/
.bash_function
@@
-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(){