Why Games Need Dedicated Proxy Configuration?
Games have completely different network quality requirements compared to regular internet usage:
Regular system proxy mode can only proxy TCP traffic, while games heavily use UDP protocol (such as voice chat and real-time position synchronization). This means system proxy is basically ineffective for games, and you need ClashX's TUN mode to achieve true global proxy.
Playing overseas servers from mainland China (LOL US server, Valorant, PUBG international), playing domestic servers from overseas (Genshin Impact domestic, Honor of Kings), Steam/Epic store acceleration, cross-region multiplayer matching.
TUN Mode: Essential for Gaming
Gaming acceleration must enable TUN mode. Reasons:
- UDP Support โ TUN mode works at network layer, can proxy both TCP and UDP traffic
- Global Coverage โ Game client needs no separate configuration, all traffic automatically goes through ClashX
- DNS Control โ Prevents game domains from being incorrectly resolved to high-latency servers
- Leak Prevention โ Games cannot bypass proxy and connect directly, ensuring all traffic uses optimal route
For detailed TUN mode setup steps, refer to ClashX TUN Mode Setup Tutorial.
Low-Latency Node Selection
Game proxy has extremely high requirements for node quality. Here's the gaming performance of different line types:
| Line Type | Latency | Jitter | Suitable Games |
|---|---|---|---|
| IPLC Dedicated Line | 30-60ms | Extremely Low | โญโญโญโญโญ |
| IEPL Dedicated Line | 30-70ms | Extremely Low | โญโญโญโญโญ |
| CN2 GIA | 60-120ms | Low | โญโญโญโญ |
| Regular Relay | 100-250ms | Medium-High | โญโญ |
FPS games (Valorant, CS2) require latency < 80ms, choose IPLC/IEPL. MOBA games (LOL) can tolerate around 100ms. Turn-based/strategy games are latency-insensitive, regular nodes work fine.
Game Split Routing Configuration
First download ClashX, enable TUN mode, then edit the configuration file to add the following rules. For detailed syntax, refer to config.yaml Complete Guide.
Dedicated Gaming Node Group
proxy-groups:
# Gaming acceleration - automatically select lowest latency node
- name: "๐ฎ Gaming Acceleration"
type: url-test
url: http://www.gstatic.com/generate_204
interval: 120
tolerance: 30
proxies:
- ๐ฏ๐ต Tokyo-IPLC
- ๐ญ๐ฐ Hong Kong-IEPL
- ๐ธ๐ฌ Singapore-IPLC
- ๐บ๐ธ Los Angeles-CN2
# Manual selection (when latency test is inaccurate)
- name: "๐ฎ Gaming Manual"
type: select
proxies:
- ๐ฎ Gaming Acceleration
- ๐ฏ๐ต Tokyo-IPLC
- ๐ญ๐ฐ Hong Kong-IEPL
- ๐ธ๐ฌ Singapore-IPLC
- DIRECTGame Platform Split Routing Rules
rules:
# ===== Steam =====
- DOMAIN-SUFFIX,steampowered.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,steamcommunity.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,steamstatic.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,steamcdn-a.akamaihd.net,๐ฎ Gaming Acceleration
# ===== Epic Games =====
- DOMAIN-SUFFIX,epicgames.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,unrealengine.com,๐ฎ Gaming Acceleration
# ===== Riot Games (LOL/Valorant) =====
- DOMAIN-SUFFIX,riotgames.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,leagueoflegends.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,playvalorant.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,riotcdn.net,๐ฎ Gaming Acceleration
# ===== PlayStation Network =====
- DOMAIN-SUFFIX,playstation.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,playstation.net,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,sonyentertainmentnetwork.com,๐ฎ Gaming Acceleration
# ===== Xbox Live =====
- DOMAIN-SUFFIX,xbox.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,xboxlive.com,๐ฎ Gaming Acceleration
# ===== HoYoverse International Servers =====
- DOMAIN-SUFFIX,hoyoverse.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,mihoyo.com,DIRECT
- DOMAIN-SUFFIX,yuanshen.com,DIRECT
# ===== PUBG =====
- DOMAIN-SUFFIX,pubg.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,playbattlegrounds.com,๐ฎ Gaming Acceleration
# ===== Nintendo =====
- DOMAIN-SUFFIX,nintendo.com,๐ฎ Gaming Acceleration
- DOMAIN-SUFFIX,nintendo.net,๐ฎ Gaming Acceleration
# ===== Domestic Games Direct Connection =====
- DOMAIN-SUFFIX,tencent.com,DIRECT
- DOMAIN-SUFFIX,qq.com,DIRECT
- DOMAIN-SUFFIX,netease.com,DIRECT
- DOMAIN-KEYWORD,163.com,DIRECT
- MATCH,DIRECTDNS Optimization
Games are sensitive to DNS resolution speed. Incorrect DNS resolution can connect you to remote servers, adding tens of milliseconds latency.
dns:
enable: true
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
# Game domains don't use fake-ip (prevent connection issues)
- "*.battlenet.com"
- "*.blizzard.com"
- "*.riotgames.com"
- "*.leagueoflegends.com"
- "*.playvalorant.com"
- "+.stun.*"
nameserver:
- https://dns.cloudflare.com/dns-query
- https://dns.google/dns-query
nameserver-policy:
# Domestic games use domestic DNS
"+.tencent.com": "https://doh.pub/dns-query"
"+.netease.com": "https://doh.pub/dns-query"
"+.mihoyo.com": "https://doh.pub/dns-query"Some games' anti-cheat systems detect connection IP. If using fake-ip, games may detect abnormal IP and disconnect. Add these game domains to fake-ip-filter to ensure real IP usage.
Performance Tuning Tips
1. Lower Tolerance Value
Set url-test node group tolerance to 30ms (default 150ms), making ClashX more aggressive in switching to low-latency nodes:
- name: "๐ฎ Gaming Acceleration"
type: url-test
tolerance: 30 # Switch if latency difference exceeds 30ms
interval: 120 # Test every 2 minutes2. TCP Fast Open
Some proxy protocols support TCP Fast Open, reducing handshake latency. Enable in node configuration:
proxies:
- name: "๐ฏ๐ต Tokyo-IPLC"
type: ss
server: jp.example.com
port: 443
cipher: aes-256-gcm
password: "your-password"
tfo: true # Enable TCP Fast Open3. Disable Unnecessary Rules
More rules mean longer matching time. For gaming, simplify the rule list, keeping only necessary game domain rules and fallback rules.
Latency Testing Methods
- ClashX Built-in Speed Test: Right-click ClashX menu bar icon โ Benchmark, view each node's latency
- In-Game Latency: Most games show latency/Ping in settings, enable for real-time monitoring
- Terminal Ping Test:
ping -c 20 game-server.comto check average latency and packet loss - ClashX Connection Panel: View actual latency and traffic for each connection in Dashboard
Frequently Asked Questions
Q: Can system proxy mode be used for gaming?
A: No. System proxy only proxies TCP traffic, games heavily use UDP. Must enable TUN mode to proxy game traffic.
Q: Do domestic games need to disable proxy?
A: No need to disable. In split routing rules, set domestic game domains (tencent.com, netease.com, mihoyo.com) to DIRECT connection, ClashX will automatically route domestic traffic directly.
Q: Game suddenly disconnects mid-play?
A: Likely caused by automatic node switching changing IP. Solutions: 1) Use manual selection (select) instead of auto-test (url-test); 2) Increase tolerance value; 3) Use fallback group instead of url-test.
Q: Steam download speed slow?
A: Steam downloads use CDN, can configure separate high-bandwidth node for Steam download domains. Or temporarily switch to direct connection during downloads.
Q: Can't connect to Valorant server?
A: Valorant's anti-cheat Vanguard is sensitive to proxy. Ensure: 1) Add Riot domains to fake-ip-filter; 2) Use TUN mode instead of system proxy; 3) Node IP not blocked by Riot.
Q: Which region's nodes are best for gaming?
A: Depends on game server location. Asia servers choose Japan/Hong Kong/Singapore; US servers choose Los Angeles/San Jose; EU servers choose Frankfurt/London. Choose node closest to game server.