ipdetecto.com logo
ipdetecto.com
My IPSpeed
Knowledge Hub
HomeKnowledge HubGreat Firewall Of China Ip Blocking
© 2026 ipdetecto.com
support@ipdetecto.comAboutContactPrivacyTermsllms.txt
Corporate
5 MIN READ
Apr 13, 2026

The Great Firewall of China: IP Blocking at a National Scale

The Great Firewall of China uses IP blacklisting, DNS poisoning, deep packet inspection, and BGP manipulation to filter internet access for over a billion users. Here is how it works technically.

Engineering Censorship at Internet Scale

The internet was engineered from the start with resilience as a goal — routing protocols were designed to find alternative paths around failures, and the distributed DNS system was built to resist central control. The Great Firewall of China (GFW), also known as the Golden Shield Project, represents the most sophisticated and comprehensive effort to override these design principles and impose centralized control over a national internet.

The GFW is not a single device, a single piece of software, or a single policy. It is a multi-layered, distributed filtering architecture that operates at every major internet exchange point and backbone connection between China's domestic network and the global internet. Understanding it requires looking at several independent but coordinated filtering mechanisms working simultaneously.

The Architecture: Multiple Filtering Layers

China's internet connects to the global internet through a limited number of international gateways, primarily operated by the three state-owned carriers: China Telecom, China Unicom, and China Mobile. All international IP traffic must pass through these choke points, which is where the filtering apparatus operates.

The GFW deploys at least five distinct filtering mechanisms, each targeting a different aspect of internet communication:

Layer 1: IP Address Blacklisting

The most straightforward mechanism. The GFW maintains extensive lists of blocked IP address ranges assigned to services the government prohibits. Traffic destined for these IPs is dropped at the border gateway. This is how services like Facebook, Google, YouTube, Twitter, Instagram, and thousands of other sites are blocked at the network layer. The IP blacklists are updated continuously.

Layer 2: DNS Injection (Poisoning)

When a user inside China queries a blocked domain, the GFW's DNS interception system responds before the legitimate DNS resolver can. It injects a falsified DNS response containing either a non-existent IP, a loopback address, or an IP belonging to a Chinese government page. The user's browser attempts to connect to this false IP and fails or reaches a block page. This is transparent to the user — the browser simply appears to fail loading the page.

Layer 3: URL-Based Filtering via HTTP Inspection

For unencrypted HTTP traffic, the GFW performs stateful packet inspection that examines the Host header in HTTP requests. Even if a server's IP is not blacklisted, specific URLs or paths can be blocked. A site might be reachable at its IP address, but specific pages with politically sensitive keywords are blocked individually. This level of granularity requires deep state tracking across TCP sessions.

Layer 4: Deep Packet Inspection (DPI) and SNI Filtering

For HTTPS traffic, the IP and URL are encrypted, but the Server Name Indication (SNI) field in the TLS ClientHello message is transmitted in plaintext. The GFW reads the SNI field to identify which domain the encrypted connection is destined for, and blocks the connection if the domain is on the block list before the TLS handshake completes. This is how HTTPS sites are blocked without needing to decrypt the traffic.

Layer 5: VPN and Protocol Fingerprinting

The GFW uses sophisticated traffic analysis to identify VPN protocols by their connection patterns and protocol fingerprints. OpenVPN, L2TP/IPsec, and PPTP connections exhibit distinctive packet sizes, timing patterns, and handshake sequences. The GFW's DPI systems are trained to recognize these patterns and throttle or block connections that match known VPN signatures.

Active Probing: The GFW's Most Advanced Technique

Standard firewalls are passive — they inspect traffic flowing through them and make block/allow decisions. The GFW includes an active probing component that goes further. When the DPI system identifies a suspicious connection (something that might be an obfuscated VPN), it launches a separate TCP connection from a GFW-controlled probe host to the same destination IP and port, attempting to handshake with whatever protocol is running there.

If the destination responds with a VPN-like protocol handshake, it confirms the GFW's suspicion, and the IP is blacklisted. This is why many VPN servers used for circumventing the GFW are discovered and blocked within hours or days — the GFW is actively testing suspected circumvention infrastructure, not just watching traffic patterns.

BGP-Level Manipulation

For large-scale blocks, China's carriers can manipulate BGP routing to make entire IP prefixes unreachable from within China. By withdrawing route advertisements or injecting null routes for specific IP blocks, traffic to entire networks can be dropped at the routing layer rather than the filtering layer. This is a blunt but effective mechanism used for large foreign ASNs during politically sensitive periods.

Real-World Impact

ServicePrimary Blocking MethodAccessible in China?
Google SearchIP blacklist + DNS injectionNo
YouTubeIP blacklist + DNS injectionNo
Facebook / InstagramIP blacklist + DNS injectionNo
Twitter / XIP blacklist + DNS injectionNo
WhatsAppIP blacklist + DPIPartially blocked
WikipediaSNI filtering (HTTPS)No (since 2019)
GitHubSNI filtering (intermittent)Usually yes
OpenVPNProtocol fingerprintingDetected and blocked

Circumvention Tools and the Arms Race

The most effective circumvention tools against the GFW are those specifically designed to defeat its protocol fingerprinting:

  • Shadowsocks: A SOCKS5 proxy protocol that uses AEAD encryption and variable-length packets designed to look like random data rather than identifiable VPN traffic.
  • V2Ray / Xray (VLESS, VMess): Highly configurable proxy tools that can disguise traffic as legitimate HTTPS traffic to major CDNs, making it extremely difficult to block without collateral damage to real HTTPS traffic.
  • obfs4 (Tor pluggable transport): Obfuscates Tor traffic to look like random bytes, defeating protocol fingerprinting.
  • Trojan: Routes traffic through a legitimate TLS connection that appears identical to HTTPS to a real website, using the response to carry tunneled traffic.

This is a continuous arms race. When the GFW develops fingerprinting for a specific tool, circumvention developers adapt. Widespread commercial VPN protocols remain reliably blocked while specialized obfuscation tools maintain varying degrees of effectiveness depending on current GFW updates.

Comparing National Internet Filtering Systems

CountrySystem NamePrimary MethodsCircumvention Difficulty
ChinaGolden Shield / GFWIP block, DNS injection, DPI, SNI, active probingVery High
IranFATA / NFISIP block, DNS filtering, deep throttlingHigh
RussiaSORM / RKNIP block, DNS, DPI (expanding since 2022)Moderate-High
North KoreaKwangmyong (intranet only)Complete physical separation from internetExtreme
TurkeyBTK blocksDNS blocking, selective IP blocksLow-Moderate

Common Misconceptions

Misconception 1: The Great Firewall Is a Single Device

The GFW is a distributed system deployed across all major international exchange points operated by China's three state carriers. There is no single appliance or single point of failure. The filtering runs on hardware and software distributed across dozens of physical locations, coordinated through policy updates pushed to all nodes simultaneously.

Misconception 2: Any VPN Will Bypass the GFW

Standard commercial VPN protocols — OpenVPN, WireGuard, and L2TP/IPsec — are routinely identified and blocked by the GFW's DPI and active probing systems. Only obfuscated protocols specifically designed to evade traffic fingerprinting (Shadowsocks, V2Ray, Trojan) maintain reasonable reliability. Even these face periodic blocking during politically sensitive periods when GFW filtering is temporarily intensified.

Misconception 3: The GFW Only Affects Political Content

The GFW blocks thousands of services that have no political content whatsoever, including many business productivity tools, developer infrastructure, CDNs, and international e-commerce sites. Services like Google Docs, Google Drive, Slack, and many GitHub integrations are affected, which has significant implications for businesses operating in China. Many multinational companies run private MPLS circuits or government-approved VPN services specifically to work around these restrictions.

Misconception 4: DNS Encryption (DoH/DoT) Defeats GFW DNS Blocking

DNS over HTTPS (DoH) encrypts DNS queries, which defeats DNS injection attacks targeting plaintext DNS. However, the GFW operates at multiple layers. DoH resolves the DNS injection problem, but the resulting IP address may still be blacklisted at Layer 3, and the SNI field in the TLS connection still reveals the destination domain. DoH is one tool in the circumvention toolkit, not a complete solution.

Pro Tips for Operating in GFW-Restricted Environments

  • Pre-configure circumvention tools before entering China. Setting up Shadowsocks, V2Ray, or Trojan requires accessing servers that may themselves be blocked from within China. Download, install, and test all tools before your device crosses the border.
  • Use domain-fronting-capable tools for the highest reliability. Tools that route traffic through major CDNs (Cloudflare, Fastly, Akamai) by making connections appear to be to trusted domains are the hardest for the GFW to block without significant collateral damage to legitimate HTTPS traffic.
  • Maintain multiple circumvention methods as backups. GFW blocking intensity varies during political events (elections, sensitive anniversaries, protests). A tool that works reliably on a regular day may be temporarily blocked during high-sensitivity periods. Having three or four different tools configured in advance provides resilience.
  • Be aware that corporate-approved VPNs are legal; unauthorized VPN use exists in a gray area. China permits the use of government-approved VPN services for businesses. Using unauthorized circumvention tools is technically prohibited, though enforcement against individual foreign visitors is rare. Corporate users should use carrier-grade MPLS or approved VPN services to remain compliant.
  • Disable IPv6 if circumvention tools do not support it. Some circumvention tools handle only IPv4 traffic. An active IPv6 interface may bypass the tunnel for IPv6-capable services, exposing your real location and potentially causing connection failures.
  • Monitor the GFW Test project and GreatFire.org for current blocking status. These public resources track which services and IP ranges are currently blocked in China. Checking these before travel or before launching a China-facing product deployment prevents wasted time configuring around services that are reliably available.
Check whether your IP address is associated with blocked or restricted services

Frequently Asked Questions

Q.What is the Great Firewall of China?

The Great Firewall (GFW), officially part of the Golden Shield Project, is China's national internet censorship and surveillance system. It operates at all major international internet gateways between China's domestic network and the global internet. It uses multiple filtering mechanisms including IP blacklisting, DNS injection, deep packet inspection, SNI filtering, and active probing to block access to foreign services deemed unacceptable by Chinese authorities.

Q.How does DNS poisoning work in the Great Firewall?

When a user inside China queries a blocked domain, the GFW intercepts the DNS query and injects a falsified response before the legitimate DNS server can reply. The false response contains either a non-existent IP, a loopback address, or the IP of a Chinese page. The user's browser connects to the false IP and fails or reaches a block page. This happens transparently at the network level.

Q.Why can't most VPNs bypass the Great Firewall?

The GFW uses deep packet inspection to identify VPN protocols by their characteristic traffic patterns, packet sizes, and handshake sequences. It also employs active probing — when suspicious traffic is detected, the GFW sends its own probe connections to the suspected VPN server to confirm its identity. Standard commercial VPN protocols including OpenVPN and WireGuard are routinely detected and blocked. Only specially obfuscated protocols like Shadowsocks and V2Ray maintain varying reliability.

Q.What is active probing by the Great Firewall?

Active probing is a technique where the GFW, upon detecting suspicious traffic that may be a circumvention tool, initiates its own separate connection to the suspected server from a GFW-controlled host. If the server responds with a VPN or proxy protocol handshake, the GFW confirms it is a circumvention server and adds it to the block list. This is why circumvention servers used for bypassing the GFW are often discovered and blocked within hours or days of use.

Q.What is SNI filtering and how does the GFW use it?

SNI (Server Name Indication) is a field in the TLS ClientHello message that tells the server which domain the client wants to connect to. This field is sent in plaintext before TLS encryption begins. The GFW reads the SNI field to identify the target domain of HTTPS connections and can block the connection if the domain is on the block list, without decrypting any traffic. This is how HTTPS sites like Wikipedia have been blocked in China.

Q.Is circumventing the Great Firewall illegal in China?

Using unauthorized VPN services is technically prohibited under Chinese regulations. However, enforcement against individual foreign visitors is uncommon. Businesses can use government-approved VPN services and private MPLS circuits legally. The legal risk is primarily for Chinese citizens rather than foreign nationals, though the regulatory environment can change and local legal advice should be sought for long-term stays or business operations.

Q.Does DNS over HTTPS (DoH) defeat the Great Firewall?

DoH encrypts DNS queries, which prevents the GFW from injecting false DNS responses. However, the GFW operates at multiple layers simultaneously. Even with DoH, the resolved IP address may still be blacklisted at the network layer, and the SNI field in the TLS handshake still reveals the target domain. DoH improves circumvention but does not alone bypass all GFW filtering mechanisms.

Q.What tools are most effective at bypassing the Great Firewall?

The most consistently effective circumvention tools are those that disguise traffic as legitimate HTTPS: Shadowsocks (AEAD-encrypted SOCKS5 proxy), V2Ray and Xray with VLESS or VMess over WebSocket + TLS, and Trojan (traffic disguised as HTTPS to a real server). These tools are specifically designed to defeat protocol fingerprinting. Standard commercial VPNs using OpenVPN, WireGuard, or L2TP are routinely blocked.

Q.How does the Great Firewall compare to other national internet filtering systems?

The GFW is the most technically sophisticated national filtering system in terms of breadth and depth of techniques deployed. Iran's filtering system is similarly comprehensive with deep throttling. Russia has expanded its filtering infrastructure significantly since 2022. North Korea operates a separate intranet with almost no public internet access. Turkey and other countries use primarily DNS-level blocking, which is significantly easier to circumvent.

Q.Can businesses in China access foreign services?

Businesses can legally use government-approved international VPN services from licensed providers, and many multinational companies run dedicated MPLS private circuits that bypass the public internet entirely. These connections are expensive but provide reliable access to global services. Cloud providers like Amazon AWS and Microsoft Azure also operate local Chinese regions (in partnership with licensed Chinese entities) to provide service within the GFW's boundaries.

Q.What services are blocked in China?

Blocked services include Google (all products), YouTube, Facebook, Instagram, Twitter/X, WhatsApp (mostly), Telegram, Wikipedia, many news sites (BBC, New York Times, Reuters), GitHub is intermittently blocked, and most Western CDNs and developer tools have some restrictions. The block list is updated continuously and is not publicly documented by Chinese authorities.

Q.What is the Golden Shield Project?

The Golden Shield Project is the official Chinese government program of which the Great Firewall is a component. It was initiated in 1998 and became operational around 2003. The project encompasses not only internet filtering but also nationwide surveillance, facial recognition systems, and data collection infrastructure. The internet filtering component is what became known internationally as the Great Firewall.
TOPICS & TAGS
great firewallinternet censorshipnational ip blockbgp filteringdns poisoninghow the great firewall of china worksnational scale internet censorship engineeringip blacklisting and dns poisoning chinabgp hijacking for state censorshipescaping the great firewall with vpnimpact of national firewalls on global websophisticated internet filtering techniquesdeep packet inspection great firewallchina internet censorship technical analysisgfw vpn detection methodsshadowsocks obfsproxy great firewall bypassinternet sovereignty fragmentationgolden shield project chinagfw active probing detectionip range blocking foreign services chinadns injection china censorshipsni filtering great firewallgfw circumvention toolsnational firewall comparison russia iran