Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The SNAT pod is unable to access fip that bound to another pod #3950

Open
qcu266 opened this issue Apr 24, 2024 · 0 comments
Open

[BUG] The SNAT pod is unable to access fip that bound to another pod #3950

qcu266 opened this issue Apr 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@qcu266
Copy link

qcu266 commented Apr 24, 2024

Kube-OVN Version

v1.12.12

Kubernetes Version

v1.24.1

Operation-system/Kernel Version

CentOS Stream 8
5.4.236-1.el8.elrepo.x86_64

Description

PR: #2911
The addition of the -o net1 parameter in this PR will cause pods within the VPC that use SNAT to be unable to access pods binding with fip. Considering the description of this PR, is it intended to address the issue of vpc-nat-gateway pods being unable to access other pods within the VPC? It seems that removing the -o net1 parameter during testing does not lead to this issue.

Steps To Reproduce

podA  ip: 10.116.80.141  snat: 10.122.194.106
podB  ip: 10.116.80.9    fip:  10.122.195.20

podA access podB fip 10.122.195.20

10.116.80.141 > 10.122.195.20

Current Behavior

It is unable to access, and upon packet capture, it is observed that only the DNAT transformation of the NAT postrouting chain is completed, while the SNAT rules seem to remain unchanged due to the -o net1 parameter.

08:29:42.304406 eth0  In  IP 10.116.80.141.42624 > 10.122.195.20.9640: Flags [S], seq 2568096467, win 64240, options [mss 1460,sackOK,TS val 2353869530 ecr 0,nop,wscale 7], length 0
08:29:42.304429 eth0  Out IP 10.116.80.141.42624 > 10.116.80.9.9640: Flags [S], seq 2568096467, win 64240, options [mss 1460,sackOK,TS val 2353869530 ecr 0,nop,wscale 7], length 0

Expected Behavior


@qcu266 qcu266 added the bug Something isn't working label Apr 24, 2024
@qcu266 qcu266 changed the title [BUG] [BUG] The SNAT pod is unable to access fip that bound to another pod Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant