Skip to content

Preserve Client Source IP in Virtual Router #9529

Closed Answered by senthilnathan-am
senthilnathan-am asked this question in Q&A
Discussion options

You must be logged in to vote

Finally found a solution to preserve client IP for Kubernetes platform in ACS.

Below are the things to be done:

  1. For K8s, if it setup manually then it is recommended to use Load Balancing rules instead of port forwarding rules for network traffic diversion.
  2. If Istio service mesh is used to expose the cluster ports then proxy protocol has to be enabled in VR haproxy service in the appropriate listen section, just by adding 'send-proxy-v2' after check.
  3. Restart the haproxy service in VR. Also, make sure the proxy protocol is enabled in Istio level.

Now, actual client source IP will get displayed in the backend server/pod log as expected.

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@zap51
Comment options

@senthilnathan-am
Comment options

@zap51
Comment options

@senthilnathan-am
Comment options

Answer selected by senthilnathan-am
@zap51
Comment options

@senthilnathan-am
Comment options

@senthilnathan-am
Comment options

@zap51
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants