Skip to content

Commit

Permalink
fix: fip unbind can't take effect immediately when conntrack record e…
Browse files Browse the repository at this point in the history
…xists (#1922)
  • Loading branch information
shane965 committed Sep 21, 2022
1 parent 606e6f6 commit 16c0ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/images/vpcnatgateway/Dockerfile
Expand Up @@ -8,7 +8,8 @@ RUN set -ex \
iproute2 \
iptables \
iputils \
tcpdump
tcpdump \
conntrack-tools

WORKDIR /kube-ovn
COPY nat-gateway.sh /kube-ovn/
Expand Down
1 change: 1 addition & 0 deletions dist/images/vpcnatgateway/nat-gateway.sh
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"
exec_cmd "conntrack -D -d $eip"
fi
done
}
Expand Down

0 comments on commit 16c0ed9

Please sign in to comment.