
5 days ago
Capturing Client IPs in AWS EKS Using Proxy Protocol V2 with a Java TCP Server
Capturing Client IPs in AWS EKS Using Proxy Protocol V2 with a Java TCP Server
Capturing client IP information becomes challenging when deploying applications on AWS EKS (Elastic Kubernetes Service) behind a Network Load Balancer (NLB). This is especially true for TCP connections, where headers aren’t typically accessible. Proxy Protocol V2 comes to the rescue by allowing us to retrieve this client data. By implementing Proxy Protocol V2, we can capture and utilize client details such as IP addresses and ports, which are vital for monitoring, logging, and security purposes.