在多任务创作场景下,我们既希望ChatGPT、Claude、Cursor与GitHub固定走高纯净度的欧美或新加坡节点,又要求国内网银、企业内网与本地开发端口绝对直连不绕路。以下是一段可直接复用的精简覆写配置示例(监听端口采用标准7890与控制端口9090):
mixed-port: 7890
allow-lan: true
mode: rule
log-level: warning
external-controller: 127.0.0.1:9090
dns:
enable: true
ipv6: false
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
nameserver:
- https://223.5.5.5/dns-query
- https://119.29.29.29/dns-query
tun:
enable: true
stack: mixed
auto-route: true
auto-detect-interface: true
rules:
- DOMAIN-SUFFIX,local,DIRECT
- IP-CIDR,192.168.0.0/16,DIRECT,no-resolve
- PROCESS-NAME,Cursor.exe,AI-Productivity
- DOMAIN-SUFFIX,openai.com,AI-Productivity
- DOMAIN-SUFFIX,anthropic.com,AI-Productivity
- DOMAIN-SUFFIX,github.com,Proxy-IEPL
- DOMAIN-SUFFIX,netflix.com,Streaming-4K
- GEOIP,CN,DIRECT
- MATCH,Proxy-IEPL