# ๐ฎ Self-Configuration
### Personal Proxy Tool Configuration Collection
**ไธชไบบไปฃ็ๅทฅๅ
ท้
็ฝฎๆไปถ้ๅ**
[](https://hizrj.xyz/#/register?code=BwiZnFLE)
[](https://hizrj.xyz/#/register?code=BwiZnFLE)
**Recommended Provider / ไผ่ดจๆบๅบๆจ่:** [ZRJ](https://hizrj.xyz/#/register?code=BwiZnFLE)
[](Clash.yaml) [](https://github.com/ClashConnectRules/Surge) [](LICENSE)
[**Features**](#-features) โข [**Clash**](#-clash-configuration) โข [**Surge**](#-surge-configuration) โข [**Providers**](#-multiple-proxy-providers) โข [**Sources**](#-rule-sources)
[๐จ๐ณ ็ฎไฝไธญๆ](README_CN.md) | ๐บ๐ธ English
---
## โจ Features
- ๐ **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
---
## ๐ File Structure
```
Self-Configuration/
โโโ Clash.yaml # Clash / Clash Meta configuration
โโโ README.md # Documentation
๐ถ Surge Configuration โ https://github.com/ClashConnectRules/Surge
```
---
## ๐ท Clash Configuration
> **Compatible Clients**: `Clash` ยท `Clash for Windows` ยท `Clash Meta` ยท `Stash` ยท `FlClash`
### โ๏ธ Basic Settings
| 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 |
### ๐ DNS Configuration
| 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 |
### ๐ฏ Proxy Groups
#### ๐ Main Selection Groups
| Group | Type | Description |
|:-----:|:----:|:-----------:|
| **่็น้ๆฉ** | `select` | Main entry point for policy selection |
| **ๆๅจๅๆข** | `select` | Manual node selection |
| **่ชๅจ้ๆฉ** | `url-test` | Auto-select lowest latency node |
#### ๐ Regional Groups
| 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 |
#### ๐ฆ Service-Specific Groups
| Group | Default | Purpose |
|:-----:|:-------:|:-------:|
| ๐ค **AIๆๅก** | Proxy | ChatGPT, Claude, Gemini |
| ๐น **YouTube** | Proxy | YouTube videos |
| ๐ **่ฐทๆญๆๅก** | Proxy | Google Search, Maps |
| ๐ง **Google FCM** | Proxy | Push notifications |
| โ๏ธ **Telegram** | Proxy | Messaging service |
| ๐ **Appleๆๅก** | DIRECT | Apple services |
| โ๏ธ **ๅพฎ่ฝฏๆๅก** | DIRECT | Microsoft services |
| ๐ **ๅฝๅคๅชไฝ** | Proxy | Netflix, Disney+, etc. |
| ๐ฏ **ๅฝๅ
ๆต้** | DIRECT | Mainland China sites |
| ๐ซง **WeChat** | DIRECT | WeChat messaging |
| ๐ซ **ๅนฟๅๆฆๆช** | REJECT | Ad blocking |
### ๐ Rule Priority
```
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
```
### ๐ Quick Start
#### 1. Import Configuration
Download [Clash.yaml](Clash.yaml) and import it to your client.
#### 2. Update Subscription URL
Replace the subscription URL in the configuration:
```yaml
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_204
```
#### 3. Enable and Select Nodes
Enable the configuration and select your preferred nodes.
---
## ๐ถ Surge Configuration
> **๐ Surge configuration has been moved to: [ClashConnectRules/Surge](https://github.com/ClashConnectRules/Surge)**
### ๐ถ [Click here to go to Surge repository โ](https://github.com/ClashConnectRules/Surge)
[](https://github.com/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 |
---
## ๐ Multiple Proxy Providers
When you have multiple subscription sources, you can integrate them as follows:
### 1. Configure Multiple Providers
```yaml
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_204
```
### 2. Integration Methods
#### Method A: Proxy Groups
```yaml
proxy-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: 300
```
#### Method B: Load Balancing
```yaml
proxy-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
```
### 3. Key Parameters
| 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 |
### 4. Best Practices
> **๐ก Tip**: Follow these practices for optimal performance
- **Regional Grouping** - Use `filter` to group nodes by region
- **Smart Selection** - Use `url-test` for automatic optimal node selection
- **Regular Updates** - Set appropriate `interval` for subscription updates
- **Health Check** - Enable `health-check` to filter unavailable nodes
- **Backup Sources** - Configure multiple subscriptions for higher availability
---
## ๐ Rule Sources
| 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 |
---
## โ ๏ธ Important Notes
| 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 |
---
## ๐ License
This project is licensed under the [MIT License](LICENSE).
---
**Made with โค๏ธ for a better internet experience**
[โฌ Back to Top](#-self-configuration)