Source IP using PrivateLink and NLB

0

Setup: Server1 (VPC-A) -> PrivateLink (VPC-B)-> NLB (VPC-B) -> Server2 (VPC-B)

The application (server 2) needs to know the source IP of the consumer (server 1). What will be the visible source IP on server2? Is it the private IP of server1 or the NLB if not, then how can we get it?

AWS
MODÉRATEUR
demandé il y a 4 ans2645 vues
1 réponse
0
Réponse acceptée

Server 2 will see the connection initiated from one of the NLB private IP address. If you need the IP addresses of the service consumers (server1) and their corresponding interface endpoint IDs, enable Proxy Protocol on your NLB and get the client IP addresses from the Proxy Protocol header.

AWS
EXPERT
mhjwork
répondu il y a 4 ans
  • This link seems to be out of date. This one contains details on how to enable Proxy Protocol

  • I am facing a similar issue. I have enabled Proxy Protocol on my Network Load Balancer and my ingress understands Proxy Protocol. However, the IP Address seen is only a local address from within the VPC. How do I get the client's IP Address?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions