Clash 完整配置参考
# 基础配置 port: 7890 # HTTP 代理端口 socks-port: 7891 # SOCKS5 代理端口 mode: rule # rule / rule / global log-level: info
proxies: - name: "ss-example" type: ss server: server port: 443 cipher: aes-256-gcm password: "password"
| 类型 | 参数 | 说明 |
|---|---|---|
| DOMAIN | example.com | 精确域名匹配 |
| DOMAIN-SUFFIX | google.com | 域名后缀匹配 |
| GEOIP | CN | IP 地理位置匹配 |
| IP-CIDR | 192.168.0.0/16 | IP 段匹配 |
| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /proxies | 获取所有代理 |
| PUT | /proxies/:name | 切换代理 |
| GET | /traffic | 获取流量 |