mixed-port: 7890
allow-lan: true
bind-address: '*'
mode: rule
log-level: info
external-controller: :9090
dns:
enable: true
ipv6: false
default-nameserver: [223.5.5.5, 119.29.29.29]
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
use-hosts: true
nameserver: ['https://my.com/token']
proxies:
- { name: '自建節點', type: ss, server: 127.0.0.1, port: 7777, cipher: aes-256-gcm, password: password0, udp: true }
tunnels:
- { network: [tcp, udp], address: 127.0.0.1:7777, target: ssip:20077, proxy: "手動選擇"}
proxy-providers:
provider1:
type: http
path: ./provider1.yaml
url: Clash的訂閱地址
interval: 86400
health-check:
enable: false
url: https://www.gstatic.com/generate_204
interval: 300
provider2:
type: http
path: ./provider2.yaml
url: Clash的訂閱地址
interval: 86400
filter: "(?i)AA-中繼-HK|AA-中繼-JP|AA-V2ray-HK|AA-V2ray-JP"
exclude-filter: "(?i)海外直連|打機神線"
health-check:
enable: false
url: https://www.gstatic.com/generate_204
interval: 300
proxy-groups:
- { name: PROXY, type: select, proxies: ["手動選擇", "自建節點", "自動選擇", DIRECT] }
- { name: "手動選擇", type: select, use: [provider1, provider2], proxies: ["自動選擇"] }
- { name: "自動選擇", type: url-test, use: [provider1, provider2], url: 'https://www.gstatic.com/generate_204', interval: 3600 }
rules:
- GEOIP,LAN,DIRECT
- GEOIP,CN,DIRECT
- MATCH,PROXY