tencent cloud

피드백

Viewing Real Client IP

마지막 업데이트 시간:2022-06-17 18:49:37

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.

  1. Run the following command on the backend server to capture the ENI.
    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
  1. Open the downloaded file dump.pcap in Wireshark and check the real client IP in TCP Option.
    The Payload field is in hexadecimal format. The last 4 bytes stands for the real client IP.
문의하기

고객의 업무에 전용 서비스를 제공해드립니다.

기술 지원

더 많은 도움이 필요하시면, 티켓을 통해 연락 바랍니다. 티켓 서비스는 연중무휴 24시간 제공됩니다.

연중무휴 24시간 전화 지원