Why You Need Back-to-China Split Routing?
If you are a Chinese living overseas, an international student, or a business traveler, you must have encountered these problems:
- Bilibili Anime: "Sorry, this content is not available in your region"
- Youku/iQiyi: Many TV shows and movies are only available in mainland China
- NetEase Music/QQ Music: Licensed songs are grayed out and unavailable overseas
- Douyin: Overseas IPs are automatically redirected to TikTok international version
- Bank Apps: Some operations are restricted for overseas IPs with "abnormal network environment" warnings
- WeChat/Alipay: Some features (red packets, wealth management) are IP-restricted
The root cause of these restrictions is copyright geographic licensing and financial compliance requirements. Content providers' copyrights only cover mainland China, and financial institutions need to ensure users operate from compliant regions.
Opposite to breaking out from mainland China, "back-to-China routing" refers to overseas users connecting to proxy nodes in mainland China to obtain a mainland China IP address, thereby accessing geographically restricted domestic content and services. ClashX's split routing feature allows you to access both domestic and overseas content simultaneously without manual switching.
Back-to-China Split Routing vs Global Proxy
Many users' first instinct is to "just use global proxy with back-to-China nodes," but this approach has obvious problems:
Problems with Global Proxy
- Google, YouTube, Netflix and other overseas services become slow (need to route out of China)
- Accessing overseas websites adds an extra hop, increasing latency by 100-300ms
- Back-to-China bandwidth is limited, wasted on traffic that doesn't need it
- Some overseas services block Chinese IPs
Advantages of Split Routing Mode
- Domestic traffic (Bilibili, NetEase Music, etc.) โ routes through back-to-China nodes
- Overseas traffic (Google, YouTube, etc.) โ direct connection or overseas proxy
- Best of both worlds, optimal speed
- Back-to-China bandwidth only used for traffic that truly needs it
Back-to-China Node Selection Guide
The quality of back-to-China nodes directly determines whether you can watch Bilibili in 4K smoothly. Here are the main types of back-to-China lines:
Line Type Comparison
| Line Type | Latency | Stability | Price |
|---|---|---|---|
| IPLC Dedicated Line | 30-80ms | Excellent | Expensive |
| CN2 GIA | 60-120ms | High | Medium |
| BGP Multi-line | 80-200ms | Medium | Cheap |
| Regular Relay | 100-300ms | Fair | Cheapest |
For 4K video playback, IPLC or CN2 GIA is recommended; BGP is sufficient for daily browsing and music listening. When choosing an airport, make sure to confirm whether it provides back-to-China nodes (not all airports have them). For subscription import methods, refer to the ClashX Subscription Import Tutorial.
ClashX Back-to-China Split Routing Configuration
Below is a complete back-to-China split routing YAML configuration. You need to first download ClashX, then edit the configuration file. For configuration file syntax details, see the config.yaml Complete Guide.
Step 1: Configure Back-to-China Proxy Groups
Add back-to-China node groups in proxy-groups:
proxy-groups:
# Back-to-China node group - automatically select the back-to-China node with lowest latency
- name: "๐จ๐ณ Back-to-China Line"
type: url-test
url: http://www.baidu.com/generate_204
interval: 300
tolerance: 50
proxies:
- ๐จ๐ณ Shanghai-IPLC
- ๐จ๐ณ Beijing-CN2
- ๐จ๐ณ Guangzhou-BGP
- ๐จ๐ณ Shenzhen-Relay
# Manual back-to-China node selection (backup)
- name: "๐จ๐ณ Back-to-China Manual"
type: select
proxies:
- ๐จ๐ณ Back-to-China Line
- ๐จ๐ณ Shanghai-IPLC
- ๐จ๐ณ Beijing-CN2
- ๐จ๐ณ Guangzhou-BGP
- DIRECTStep 2: Configure Domestic Split Routing Rules
Add domestic domain and IP split routing rules in rules to direct them to the back-to-China node group:
rules:
# ===== Domestic Video Platforms =====
- DOMAIN-SUFFIX,bilibili.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,bilivideo.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,biliapi.net,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,hdslb.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,youku.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,ykimg.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,iqiyi.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,iqiyipic.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,mgtv.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,douyin.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,douyinpic.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,toutiao.com,๐จ๐ณ Back-to-China Line
# ===== Domestic Music Platforms =====
- DOMAIN-SUFFIX,music.163.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,126.net,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,y.qq.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,qq.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,kugou.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,kuwo.cn,๐จ๐ณ Back-to-China Line
# ===== Social and Payment =====
- DOMAIN-SUFFIX,weixin.qq.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,wechat.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,alipay.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,alipayobjects.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,taobao.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,tmall.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,jd.com,๐จ๐ณ Back-to-China Line
# ===== Common Domestic Websites =====
- DOMAIN-SUFFIX,baidu.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,zhihu.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,weibo.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,xiaohongshu.com,๐จ๐ณ Back-to-China Line
- DOMAIN-SUFFIX,douban.com,๐จ๐ณ Back-to-China Line
# ===== Mainland China IP Ranges =====
- GEOIP,CN,๐จ๐ณ Back-to-China Line
# ===== Other traffic direct or overseas proxy =====
- MATCH,DIRECTClashX rules are matched from top to bottom, with the first matching rule taking effect. It's recommended to put the most frequently used domain rules at the top and GEOIP at the bottom as a fallback. For more rule details, refer to the TUN Mode Tutorial.
DNS Split Routing Configuration
DNS split routing is key to a good back-to-China experience. If domestic domains are resolved by overseas DNS, they may return overseas CDN nodes, causing slow speeds even with back-to-China routing.
dns:
enable: true
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
nameserver:
# Use overseas DNS by default
- https://dns.cloudflare.com/dns-query
- https://dns.google/dns-query
fallback:
- https://1.1.1.1/dns-query
- tls://8.8.4.4:853
fallback-filter:
geoip: true
geoip-code: CN
# Use domestic DNS for domestic domains
nameserver-policy:
"+.bilibili.com": "https://doh.pub/dns-query"
"+.bilivideo.com": "https://doh.pub/dns-query"
"+.youku.com": "https://doh.pub/dns-query"
"+.iqiyi.com": "https://doh.pub/dns-query"
"+.music.163.com": "https://doh.pub/dns-query"
"+.qq.com": "https://doh.pub/dns-query"
"+.taobao.com": "https://doh.pub/dns-query"
"+.jd.com": "https://doh.pub/dns-query"
"+.baidu.com": "https://doh.pub/dns-query"
"+.weibo.com": "https://doh.pub/dns-query"
"+.zhihu.com": "https://doh.pub/dns-query"
"+.alipay.com": "https://doh.pub/dns-query"
"+.douyin.com": "https://doh.pub/dns-query"nameserver-policy ensures domestic domains are resolved using Tencent DNSPod (doh.pub, returning the optimal domestic CDN node IP, combined with back-to-China routing for best speed.
Common Use Cases
Scenario 1: Watching Bilibili Anime Overseas
Many Bilibili anime are only available in mainland China. After configuring split routing, traffic to bilibili.com automatically routes through back-to-China nodes, and the anime section no longer shows "region restricted" messages. IPLC lines are recommended for smooth 4K playback.
Scenario 2: Listening to NetEase Music Licensed Songs
About 30% of NetEase Music songs are grayed out overseas due to copyright issues. Split routing configuration directs music.163.com to back-to-China nodes, making grayed-out songs playable again.
Scenario 3: Normal WeChat Pay/Alipay Usage
Some financial operations detect IP regions. Through back-to-China split routing, WeChat red packets, Alipay wealth management and other features work normally without "abnormal network environment" warnings.
Scenario 4: Accessing Domestic Bank Apps
Some functions in bank apps like ICBC and CMB are restricted for overseas IPs. Back-to-China split routing makes bank apps think you're in China, allowing transfers, inquiries and other operations to proceed normally.
Scenario 5: Using Douyin Instead of TikTok
Overseas IPs accessing Douyin are redirected to TikTok international version. After configuring split routing, douyin.com routes through back-to-China lines, allowing normal use of the domestic Douyin version.
Verify Configuration is Working
After configuration is complete, verify using these steps:
- Check IP: Visit
ip.sbormyip.ipip.netto confirm a mainland China IP address is displayed - Test Bilibili: Open Bilibili's anime section, select an anime marked "mainland only," and confirm it plays
- Test NetEase Music: Search for a previously grayed-out song and confirm it plays normally
- Check ClashX Logs: In ClashX's connection panel, confirm that bilibili.com and other domains are routing through back-to-China nodes
- Test Overseas Websites: Simultaneously access Google to confirm overseas websites still work normally and speed hasn't decreased
Frequently Asked Questions
Q: Can back-to-China nodes and overseas proxy nodes be used simultaneously?
A: Yes. This is exactly the advantage of ClashX split routing. You can configure both back-to-China node groups and overseas proxy node groups simultaneously, with different domains using different lines. For example, bilibili.com uses back-to-China routing while google.com uses overseas proxy, without affecting each other.
Q: What should I do if back-to-China node speed is slow?
A: 1) Switch line types, IPLC > CN2 GIA > BGP; 2) Use url-test groups to let ClashX automatically select the fastest node; 3) Avoid peak hours (Beijing time 20:00-23:00); 4) Contact your airport's customer service to confirm back-to-China lines are working properly.
Q: Bilibili still shows region restrictions after configuration?
A: 1) Clear Bilibili cache and cookies; 2) In ClashX's connection panel, confirm bilibili.com is indeed routing through back-to-China nodes; 3) Check if DNS is correctly split (domestic domains should use domestic DNS); 4) Try switching different back-to-China nodes.
Q: Do I need to enable TUN mode?
A: System proxy mode is sufficient for browser access to Bilibili, NetEase Music and other websites. If you need domestic apps (like WeChat, Alipay desktop version) to also route through back-to-China lines, you need to enable TUN mode.
Q: Which airports provide back-to-China nodes?
A: Not all airports provide back-to-China nodes. Before purchasing, confirm whether the airport has nodes labeled "back-to-China," "mainland China," or "China Mainland." Some airports specializing in back-to-China services provide IPLC back-to-China dedicated lines.
Q: Will back-to-China split routing affect overseas website speed?
A: No. In split routing mode, only traffic matching domestic rules routes through back-to-China nodes; other traffic remains direct or uses overseas proxies. The two lines don't affect each other.