
One IP address, many users: Detecting CGNAT to reduce collateral effects
10/29/2025
This post introduces Cloudflare's approach to detecting Carrier-Grade Network Address Translation (CGNAT) to reduce collateral effects of IP-based security mechanisms. It details the motivation behind this work, highlighting the socioeconomic bias CGNAT can introduce, especially in developing regions. The post outlines the technical challenge of building a labeled dataset for training ML classifiers and describes the use of distributed traceroutes, analyzing hop sequences and the presence of RFC 6598 and RFC 1918 addresses, to infer CGNAT presence. This contributes to a new capability focused on identifying and mitigating the impact of large-scale IP sharing.
