Skip to content

Commit

Permalink
fix: delete fiprule failed at first time (#1998)
Browse files Browse the repository at this point in the history
(cherry picked from commit 32f65f8)
  • Loading branch information
shane965 authored and oilbeater committed Oct 31, 2022
1 parent 9e51caa commit 1bf5fa9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/images/vpcnatgateway/nat-gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ function del_floating_ip() {
if [ "$?" -eq 0 ];then
exec_cmd "iptables -t nat -D EXCLUSIVE_DNAT -d $eip -j DNAT --to-destination $internalIp"
exec_cmd "iptables -t nat -D EXCLUSIVE_SNAT -s $internalIp -j SNAT --to-source $eip"
conntrack -D -d $eip 2>/dev/nul || true
fi
done
}
Expand Down

0 comments on commit 1bf5fa9

Please sign in to comment.