- 🚀 High Performance - Optimized configurations for maximum speed
- 🎯 Smart Routing - Intelligent traffic splitting and regional selection
- 🛡️ Privacy Protection - Built-in ad blocking and tracker prevention
- 🌍 Global Streaming - Netflix, Disney+, YouTube, TikTok unlock support
- 🤖 AI Services - Dedicated routing for ChatGPT, Claude, Gemini
- 📱 Cross-Platform - Support for Clash, Surge, Stash, and more
- ⚡ Auto Failover - Automatic URL testing for optimal node selection
- 🔄 Easy Updates - Integrated subscription management
Self-Configuration/
├── Clash.yaml # Clash / Clash Meta configuration
└── README.md # Documentation
🔶 Surge Configuration → https://github.com/ClashConnectRules/Surge
Compatible Clients:
Clash·Clash for Windows·Clash Meta·Stash·FlClash
| Setting | Value | Description |
|---|---|---|
| Mixed Port | 7890 |
Shared HTTP/SOCKS5 port |
| Controller | 9090 |
Web dashboard port |
| Mode | Rule |
Rule-based routing mode |
| Allow LAN | true |
Allow LAN connections |
| IPv6 | true |
IPv6 support enabled |
| Enhanced Mode | Fake-IP |
Enhanced performance mode |
| Type | Server | Provider |
|---|---|---|
| DoT | tls://223.5.5.5:853 |
Alibaba DNS |
| DoT | tls://223.6.6.6:853 |
Alibaba DNS |
| DoH | https://doh.pub/dns-query |
DNSPod |
| DoH | https://dns.alidns.com/dns-query |
Alibaba DNS |
| Group | Type | Description |
|---|---|---|
| 节点选择 | select |
Main entry point for policy selection |
| 手动切换 | select |
Manual node selection |
| 自动选择 | url-test |
Auto-select lowest latency node |
| Group | Filter Pattern | Region |
|---|---|---|
| 🇭🇰 Hong Kong | 港|HK|Hong Kong |
Hong Kong SAR |
| 🇯🇵 Japan | 日|JP|Japan |
Japan |
| 🇺🇸 United States | 美|US|United States |
USA |
| 🇸🇬 Singapore | 新|SG|Singapore |
Singapore |
| 🇹🇼 Taiwan | 台|TW|Taiwan |
Taiwan |
| 🇰🇷 Korea | 韩|KR|Korea |
South Korea |
| 🇬🇧 United Kingdom | 英|UK|United Kingdom |
UK |
| 🇩🇪 Germany | 德|DE|Germany |
Germany |
| 🇫🇷 France | 法|FR|France |
France |
| 🌍 Other Regions | Exclude above | Other regions |
| Group | Default | Purpose |
|---|---|---|
| 🤖 AI服务 | Proxy | ChatGPT, Claude, Gemini |
| 📹 YouTube | Proxy | YouTube videos |
| 🔍 谷歌服务 | Proxy | Google Search, Maps |
| 📧 Google FCM | Proxy | Push notifications |
| Proxy | Messaging service | |
| 🍎 Apple服务 | DIRECT | Apple services |
| DIRECT | Microsoft services | |
| 🌍 国外媒体 | Proxy | Netflix, Disney+, etc. |
| 🎯 国内流量 | DIRECT | Mainland China sites |
| DIRECT | WeChat messaging | |
| 🚫 广告拦截 | REJECT | Ad blocking |
1. 🚫 Ad Blocking → REJECT
2. ⚡ Special Rules → DIRECT
3. 🤖 AI Services → Proxy
4. 🎬 Streaming → Proxy
5. 📺 CN Media → DIRECT
6. 💬 Messaging → Proxy
7. 🔧 Tech Services → Auto
8. 💰 Cryptocurrency → Proxy
9. 🎮 Gaming → Auto
10. 🇨🇳 CN Rules → DIRECT
11. 🌏 GeoIP CN → DIRECT
12. 🌐 Final Rule → Proxy
Download Clash.yaml and import it to your client.
Replace the subscription URL in the configuration:
proxy-providers:
all-proxies:
type: http
url: "https://your-subscription-url"
interval: 3600
path: ./providers/all-proxies.yaml
health-check:
enable: true
interval: 600
url: http://www.gstatic.com/generate_204Enable the configuration and select your preferred nodes.
👉 Surge configuration has been moved to: ClashConnectRules/Surge
| Feature | Description |
|---|---|
| 🚀 Smart Routing | Intelligent traffic splitting |
| 🛡️ Ad Blocking | Multi-source ad rules |
| 🌍 Streaming Unlock | Netflix, Disney+, YouTube, TikTok |
| 🤖 AI Services | ChatGPT, Claude, Gemini dedicated routing |
| 📱 Cross-Platform | iOS & macOS support |
When you have multiple subscription sources, you can integrate them as follows:
proxy-providers:
provider-1:
type: http
url: "https://subscription-1.com"
interval: 3600
path: ./providers/provider-1.yaml
health-check:
enable: true
interval: 600
url: http://www.gstatic.com/generate_204
provider-2:
type: http
url: "https://subscription-2.com"
interval: 3600
path: ./providers/provider-2.yaml
health-check:
enable: true
interval: 600
url: http://www.gstatic.com/generate_204proxy-groups:
# Auto-select fastest node from all providers
- name: "Auto"
type: url-test
use:
- provider-1
- provider-2
url: http://www.gstatic.com/generate_204
interval: 300
# Manual selection from all providers
- name: "Manual"
type: select
use:
- provider-1
- provider-2
# Regional groups with filter
- name: "Hong Kong"
type: url-test
use:
- provider-1
- provider-2
filter: "港|HK|Hong Kong"
url: http://www.gstatic.com/generate_204
interval: 300proxy-groups:
- name: "Load-Balance"
type: load-balance
use:
- provider-1
- provider-2
strategy: consistent-hashing # or round-robin
url: http://www.gstatic.com/generate_204| Parameter | Description |
|---|---|
use |
Specify which proxy providers to use |
filter |
Filter nodes by name (supports regex) |
url-test |
Auto-test latency and select fastest |
load-balance |
Distribute traffic across nodes |
select |
Manual selection mode |
💡 Tip: Follow these practices for optimal performance
- Regional Grouping - Use
filterto group nodes by region - Smart Selection - Use
url-testfor automatic optimal node selection - Regular Updates - Set appropriate
intervalfor subscription updates - Health Check - Enable
health-checkto filter unavailable nodes - Backup Sources - Configure multiple subscriptions for higher availability
| Source | Description | Provider |
|---|---|---|
| [dler-io/Rules] | Main Clash ruleset | @dler-io |
| [blackmatrix7] | Cross-platform rules | @blackmatrix7 |
| [SukkaW/Surge] | SKK ruleset | @SukkaW |
| [VirgilClyne] | ASN rules | @VirgilClyne |
| [Semporia] | TikTok unlock | @Semporia |
| Item | Description |
|---|---|
| 🔗 Subscription | Must replace with your own subscription URL |
| 🔄 Rule Update | Rules auto-update every 7 days |
| ⏱️ Speed Test | 300s interval, 3s timeout |
| 🔐 MITM Certificate | Required for Surge URL rewrite |
| 🔍 Node Filter | Auto-filter nodes with "traffic/reset/expire" keywords |
This project is licensed under the MIT License.
Made with ❤️ for a better internet experience