One IP address, many users: Detecting CGNAT to reduce collateral effects
Oct 29, 2025Vasilis Giotsas, Marwan Fayed

Summary
This post introduces Cloudflare's work on detecting Carrier-Grade NAT (CGNAT) and other large-scale IP sharing (LSS) mechanisms. It highlights the socioeconomic bias that can arise from traditional IP-based security measures when applied to shared IPs, particularly in developing regions. The post details the motivation for this work, the technical challenges of CGNAT, and Cloudflare's approach to building a supervised learning classifier using distributed traceroutes and public data sources to identify CGNAT IPs. This contributes to the broader theme of refining threat management by understanding the underlying network infrastructure and user access patterns.
More from the Website Security & Threat Management trail
- We tested our own WAF with frontier AI models. Here’s what we found
- When scanners miss the attack: how Cloudflare Client-Side Security protects storefronts
- Introducing automatic remediation policies with Cloudflare CASB
- Introducing context-aware vulnerability discovery and remediation with Cloudflare Managed Defense and OpenAI Daybreak Models
- Introducing Adaptive Intelligence: undermining the economics of every bot attack