-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpreference.basic.yaml
63 lines (51 loc) · 1.98 KB
/
preference.basic.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Port of HTTP(S) proxy server on the local end
port: 7890
# Port of SOCKS5 proxy server on the local end
socks-port: 7891
# Transparent proxy server port for Linux and macOS (Redirect TCP and TProxy UDP)
redir-port: 7892
# Transparent proxy server port for Linux (TProxy TCP and TProxy UDP)
tproxy-port: 7893
# Set to true to allow connections to the local-end server from
# other LAN IP addresses
allow-lan: false
# RESTful web API listening address
external-controller: 127.0.0.1:9090
# Static hosts for DNS server and connection establishment (like /etc/hosts)
#
# Wildcard hostnames are supported (e.g. *.clash.dev, *.foo.*.example.com)
# Non-wildcard domain names have a higher priority than wildcard domain names
# e.g. foo.example.com > *.example.com > .example.com
# P.S. +.foo.com equals to .foo.com and foo.com
hosts:
services.googleapis.cn: 74.125.193.94 # Google 中国重新定向
time.android.com: 203.107.6.88 # 国内可用 NTP 服务器
ipv6.msftconnecttest.com: 2a01:111:2003::52 # Windows 网络状态检查
www.msftconnecttest.com: 13.107.4.52 # Windows 网络状态检查
proxies: # 更多协议配置示例:https://github.com/Dreamacro/clash/wiki/configuration
# VMess
- { name: "US-Ashburn-01", type: vmess, server: server, port: 443, uuid: uuid, alterId: 0, cipher: auto }
- { name: "JP-Tokyo-02", type: vmess, server: server, port: 443, uuid: uuid, alterId: 0, cipher: auto }
proxy-groups:
- name: "Static" # 静态IP模式,支付类网站ip变动容易被风控
type: select
proxies:
- "US-Ashburn-01"
prefix-rules: # 前置规则
# 绕过代理
- DST-PORT,22,DIRECT # SSH
suffix-rules: # 后置规则
rulesets:
# PayPal
- name: "PayPal"
group: "Static"
ruleset: "rules/martincz/PayPal/PayPal.yaml"
# AppleTV
- name: "AppleTV"
group: "GlobalMedia"
ruleset: "rules/blackmatrix7/AppleTV/AppleTV.yaml"
# GitHub
- name: "GitHub"
group: "Proxy"
ruleset: "rules/blackmatrix7/GitHub/GitHub.yaml"
dns: