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 0c33826 commit f5e67e2Copy full SHA for f5e67e2
bin/v-delete-firewall-ban
@@ -50,7 +50,7 @@ fi
50
# Deleting ip from banlist
51
sip=$(echo "$ip"| sed "s|/|\\\/|g")
52
sed -i "/IP='$sip' CHAIN='$chain'/d" $conf
53
-b=$($iptables -L fail2ban-$chain --line-number -n|grep $ip|awk '{print $1}')
+b=$($iptables -L fail2ban-$chain --line-number -n|grep -w $ip|awk '{print $1}')
54
$iptables -D fail2ban-$chain $b 2>/dev/null
55
56
# Changing permissions
0 commit comments