Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Kube OVN
Commits
16c0ed9f
Unverified
Commit
16c0ed9f
authored
2 years ago
by
shane
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: fip unbind can't take effect immediately when conntrack record exists (#1922)
parent
606e6f62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist/images/vpcnatgateway/Dockerfile
+2
-1
dist/images/vpcnatgateway/Dockerfile
dist/images/vpcnatgateway/nat-gateway.sh
+1
-0
dist/images/vpcnatgateway/nat-gateway.sh
with
3 additions
and
1 deletion
+3
-1
dist/images/vpcnatgateway/Dockerfile
+
2
-
1
View file @
16c0ed9f
...
...
@@ -8,7 +8,8 @@ RUN set -ex \
iproute2
\
iptables
\
iputils
\
tcpdump
tcpdump
\
conntrack-tools
WORKDIR
/kube-ovn
COPY
nat-gateway.sh /kube-ovn/
...
...
This diff is collapsed.
Click to expand it.
dist/images/vpcnatgateway/nat-gateway.sh
+
1
-
0
View file @
16c0ed9f
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help