We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac3ed7b commit 98e6fecCopy full SHA for 98e6fec
bin/v-delete-firewall-ban
@@ -45,7 +45,8 @@ if [ -z "$check_ip" ]; then
45
fi
46
47
# Deleting ip from banlist
48
-sed -i "/IP='$ip' CHAIN='$chain'/d" $conf
+sip=$(echo "$ip"| sed "s|/|\\\/|g")
49
+sed -i "/IP='$sip' CHAIN='$chain'/d" $conf
50
b=$($iptables -L fail2ban-$chain --line-number -n|grep $ip|awk '{print $1}')
51
$iptables -D fail2ban-$chain $b 2>/dev/null
52
0 commit comments