mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
fix for netmask
This commit is contained in:
parent
ac3ed7b081
commit
98e6fec795
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ if [ -z "$check_ip" ]; then
|
|||
fi
|
||||
|
||||
# Deleting ip from banlist
|
||||
sed -i "/IP='$ip' CHAIN='$chain'/d" $conf
|
||||
sip=$(echo "$ip"| sed "s|/|\\\/|g")
|
||||
sed -i "/IP='$sip' CHAIN='$chain'/d" $conf
|
||||
b=$($iptables -L fail2ban-$chain --line-number -n|grep $ip|awk '{print $1}')
|
||||
$iptables -D fail2ban-$chain $b 2>/dev/null
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue