Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

trying to understand NAT mode #26

Open
chino opened this issue Nov 10, 2017 · 1 comment
Open

trying to understand NAT mode #26

chino opened this issue Nov 10, 2017 · 1 comment

Comments

@chino
Copy link

chino commented Nov 10, 2017

When keepalive is setup to nat to different backends (that can be on different hosts) how does the target host know to properly flip the source ip back to the vip address when replying? From observation the host seems to be directly returning the packets using it's own source address.

Curious if this feature was used for some type of proper Direct Server Return setup?

Thanks.

@panpan0000
Copy link
Contributor

keepalived/lvs will not do SNAT, but only DNAT.
you will have to achieve snat by yourself.
example, on the real server node , set the default gateway to the VIP.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants