Clash 初始化

本文最后更新于:2024年3月18日 凌晨

Clash 初始化

安装

1
$ brew install clashx

配置文件

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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
port: 7890
socks-port: 7891
allow-lan: true
mode: Rule
log-level: info
external-controller: :9090
proxies:
# Shadowsocks
# The supported ciphers (encryption methods):
# aes-128-gcm aes-192-gcm aes-256-gcm
# aes-128-cfb aes-192-cfb aes-256-cfb
# aes-128-ctr aes-192-ctr aes-256-ctr
# rc4-md5 chacha20-ietf xchacha20
# chacha20-ietf-poly1305 xchacha20-ietf-poly1305
- name: "AWS-ss"
type: ss
server: ip_address
port: port_num
cipher: chacha20-ietf-poly1305
password: "YourPassword"
# udp: true

# vmess
# cipher support auto/aes-128-gcm/chacha20-poly1305/none
- name: "AWS-vmess"
type: vmess
server: ip_address
port: port_num
uuid: uuid
alterId: 233
cipher: none
# udp: true
# tls: true
# skip-cert-verify: true
# servername: example.com # priority over wss host
# network: ws
# ws-path: /path
# ws-headers:
# Host: v2ray.com

# Trojan
# - name: "trojan"
# type: trojan
# server: server
# port: 443
# password: yourpsk
# udp: true
# sni: example.com # aka server name
# alpn:
# - h2
# - http/1.1
# skip-cert-verify: true

# ShadowsocksR
# The supported ciphers (encryption methods): all stream ciphers in ss
# The supported obfses:
# plain http_simple http_post
# random_head tls1.2_ticket_auth tls1.2_ticket_fastauth
# The supported supported protocols:
# origin auth_sha1_v4 auth_aes128_md5
# auth_aes128_sha1 auth_chain_a auth_chain_b
# - name: "ssr"
# type: ssr
# server: server
# port: 443
# cipher: chacha20-ietf
# password: "password"
# obfs: tls1.2_ticket_auth
# protocol: auth_sha1_v4
# obfs-param: domain.tld
# protocol-param: "#"
# udp: true

proxy-groups:
- name: 🔰 节点选择。
type: select
proxies:
- 🎯 全球直连。
- AWS-vmess
- AWS-ss
- name: 🌍 国外媒体。
type: select
proxies:
- 🎯 全球直连。
- 🔰 节点选择。
- name: 🌏 国内媒体。
type: select
proxies:
- 🎯 全球直连。
- 🔰 节点选择。
- name: Ⓜ️ 微软服务。
type: select
proxies:
- 🎯 全球直连。
- 🔰 节点选择。
- name: 📲 电报信息。
type: select
proxies:
- 🎯 全球直连。
- 🔰 节点选择。
- name: 🍎 苹果服务。
type: select
proxies:
- 🎯 全球直连。
- 🔰 节点选择。
- name: 🎯 全球直连。
type: select
proxies:
- DIRECT
- name: 🛑 全球拦截。
type: select
proxies:
- REJECT
- DIRECT
- 🔰 节点选择。
- name: 🐟 漏网之鱼。
type: select
proxies:
- 🎯 全球直连。
- 🔰 节点选择。
rules:
- DOMAIN-SUFFIX,local,🎯 全球直连。
- IP-CIDR,192.168.0.0/16,🎯 全球直连,no-resolve
- IP-CIDR,10.0.0.0/8,🎯 全球直连,no-resolve
- IP-CIDR,172.16.0.0/12,🎯 全球直连,no-resolve
- IP-CIDR,127.0.0.0/8,🎯 全球直连,no-resolve
- IP-CIDR,100.64.0.0/10,🎯 全球直连,no-resolve
- IP-CIDR6,::1/128,🎯 全球直连,no-resolve
- IP-CIDR6,fc00::/7,🎯 全球直连,no-resolve
- IP-CIDR6,fe80::/10,🎯 全球直连,no-resolve
- IP-CIDR6,fd00::/8,🎯 全球直连,no-resolve

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!