real-ip

Behind AWS ELB : How to grab the Real IP from “netstat”?

放肆的年华 提交于 2020-01-06 20:19:23
问题 I'm using AWS Elastic Load Balancing (ELB) in front of 2 Linux Web Servers. But (based on my requirement) i need to know the Real IPs from the Web Servers' perspective, especially when i use netstat . I need to know the number of incoming connections from each IPs (from NETSTAT) , as in real time. So basically in Linux (without ELB in front) , below netstat command perfectly works: netstat -tn 2>/dev/null | grep :80 But now i can only see the internal IP(s) of the ELB ; which is making the