Logs and analysis FAQ

Updated at:

This topic explains why private IP addresses appear in Alibaba Cloud CDN access logs and provides solutions for handling them in access control and traffic analysis scenarios.

Why do private IP addresses (such as 10.x.x.x, 172.16.x.x) appear in my CDN logs and network traffic analysis?

When a client accesses Alibaba Cloud CDN through a small or medium-sized ISP's metropolitan area network (MAN), the client IP address recorded in CDN logs is a private IP address assigned by the ISP. This is expected behavior.

Common causes

In the Chinese mainland network environment, in addition to the three major ISPs (China Telecom, China Unicom, and China Mobile), many regional and industry-specific small and medium-sized ISPs operate their own networks (such as Dr. Peng, Founder Broadband, and CERNET). Alibaba Cloud CDN deploys edge nodes within these ISP networks to provide acceleration services to their users with minimal latency.

Some of these ISPs use private IP address ranges (NAT intranet) within their metropolitan area networks to assign addresses to end users. Connections between user terminals and CDN edge nodes are established directly through the ISP's intranet without going through a public network egress. As a result, the client IP address obtained by CDN nodes is a private IP address (such as 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) rather than a public IP address.

This behavior is expected and does not indicate a service issue.

Solutions

Solution 1: Configure IP blacklist/whitelist

If you use the IP Blacklist/Whitelist feature to control access based on the geographic location of client IP addresses, take the following actions:

  • Add common private IP address ranges to the whitelist: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16. This prevents legitimate user requests from being blocked.

  • For more granular access control, use additional dimensions (such as UA, Referer, and business token verification) to determine request validity. This reduces reliance on IP geolocation alone.

For detailed configuration steps, see Configure IP blacklist/whitelist.

Solution 2: Handle private IPs in log and traffic analysis

If private IP addresses appear in access logs or traffic reports, take the following actions:

  • Apply special tags or categorization to private IP addresses. For example, classify them uniformly as "small ISP users" to prevent them from being mistakenly identified as unusual traffic or invalid data.

  • For accurate geographic identification of users, use supplementary information such as the CDN node's geographic location and other identifiers in the request header for comprehensive analysis.

For detailed operations, see Download and analyze CDN logs.