Method 1: Check the client IP in nginx logs (log path: /var/log/nginx/access.log)
Method 2: Check the client IP using tcpdump in Wireshark.
sudo tcpdump -i eth0 -w dump.pcap
-i
specifies an ENI to capture.-w
specifies a location for saving results.
2. After the client accesses the test URL, press Ctrl + C to stop capturing.
3. Download the dump.pcap file to your local PC using the sz
command or any other method.
sz dump.pcap
TCP Option
.Payload
field is in hexadecimal format. The last 4 bytes stands for the real client IP.
문제 해결에 도움이 되었나요?