Created
June 1, 2024 03:26
-
-
Save mcxiaoke/d41b9f6aefe15002b38b95c96c60ffc0 to your computer and use it in GitHub Desktop.
clash各种协议的配置模板
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DNS 配置可自行修改 | |
port: 7890 | |
allow-lan: true | |
mode: rule | |
log-level: info | |
unified-delay: true | |
global-client-fingerprint: chrome | |
dns: | |
enable: true | |
listen: :53 | |
ipv6: true | |
enhanced-mode: fake-ip | |
fake-ip-range: 198.18.0.1/16 | |
default-nameserver: | |
- 223.5.5.5 | |
- 114.114.114.114 | |
- 8.8.8.8 | |
nameserver: | |
- https://dns.alidns.com/dns-query | |
- https://doh.pub/dns-query | |
fallback: | |
- https://1.0.0.1/dns-query | |
- tls://dns.google | |
fallback-filter: | |
geoip: true | |
geoip-code: CN | |
ipcidr: | |
- 240.0.0.0/4 | |
# 当前 13 个主流协议节点配置模版,按需求修改,如不需要使用某协议节点,则无需删除,确保代理分流中没有该节点即可 | |
proxies: | |
- name: vless-reality-vision # 可以自定义节点名称 | |
type: vless | |
server: 1.2.3.4 # 解析的域名或IP | |
port: 12345 # 自定义端口 | |
uuid: f897325d-053d-45d1-899c-566692331f8 # 自定义 UUID | |
network: tcp | |
udp: true | |
tls: true | |
flow: xtls-rprx-vision | |
servername: sega.com # 自定义回落域名 | |
reality-opts: | |
public-key: 4CiE7y7ZPBXIZWzMwphuSH7qdZyisNjD3CDQGjmilmI # Reality public-key | |
short-id: a8c031ce # Reality short-id | |
client-fingerprint: chrome # 自定义浏览器指纹 | |
- name: vless-reality-grpc # 可以自定义节点名称 | |
type: vless | |
server: 1.2.3.4 # 解析的域名或IP | |
port: 12345 # 自定义端口 | |
uuid: 335ec5dd-61b1-4413-980e-5e009968f633 # 自定义 UUID | |
network: grpc | |
tls: true | |
udp: true | |
flow: | |
client-fingerprint: chrome # 自定义浏览器指纹 | |
servername: sega.com # 自定义回落域名 | |
grpc-opts: | |
grpc-service-name: "misaka" # 自定义的字符 | |
reality-opts: | |
public-key: Aqp9oy2EFi4NNfRMZa3I3HdGhHbOIiSDZ8L28UCF73k # Reality public-key | |
short-id: 24410d1c # Reality short-id | |
- name: vless-xtls-rprx-vision # 可以自定义节点名称 | |
type: vless | |
server: www.bing.com # 解析的域名 | |
port: 12345 # 自定义端口 | |
uuid: 5f74f86b-3ee8-44f4-adc4-6666be3d315 # 自定义 UUID | |
network: tcp | |
tls: true | |
udp: true | |
flow: xtls-rprx-vision | |
client-fingerprint: chrome | |
- name: vless-ws-tls # 可以自定义节点名称 | |
type: vless | |
server: www.bing.com # 解析的 IP / 域名或优选 IP / 域名 | |
port: 12345 # 自定义端口 | |
uuid: 3cc9a51c-db76-4ad2-a76b-8cb993bddb73 # 自定义 UUID | |
udp: true | |
tls: true | |
network: ws | |
servername: www.bing.com # SNI 域名,与下面 Host 一致 | |
ws-opts: | |
path: "/?ed=2048" # 自定义 path 路径 | |
headers: | |
Host: www.bing.com # Host 域名,与上面 server 字段的地址一致 | |
- name: vless-ws # 可以自定义节点名称 | |
type: vless | |
server: www.bing.com # 解析的 IP / 域名或优选 IP / 域名 | |
port: 8880 # 自定义端口 | |
uuid: 77a571fb-4fd2-4b37-8596-1b7d9728bb5c # 自定义 UUID | |
udp: true | |
tls: false | |
network: ws | |
servername: www.bing.com # SNI 域名,与下面 host 一致 | |
ws-opts: | |
path: "/?ed=2048" # 自定义 path 路径 | |
headers: | |
Host: www.bing.com # Host 域名,与上面 server 字段的地址一致 | |
- name: vmess-ws-tls # 可以自定义节点名称 | |
type: vmess | |
server: www.bing.com # 解析的 IP / 域名或优选 IP / 域名 | |
port: 12345 # 自定义端口 | |
uuid: 3cc9a51c-db76-4ad2-a76b-8cb993bddb73 # 自定义 UUID | |
alterId: 0 | |
cipher: auto | |
udp: true | |
tls: true | |
network: ws | |
servername: www.bing.com # SNI 域名,与下面 host 一致 | |
ws-opts: | |
path: "/?ed=2048" # 自定义 path 路径 | |
headers: | |
Host: www.bing.com # Host 域名,与上面 server 字段的地址一致 | |
- name: vmess-ws # 可以自定义节点名称 | |
type: vmess | |
server: www.bing.com # 解析的 IP / 域名或优选 IP / 域名 | |
port: 8880 # 自定义端口 | |
uuid: 77a571fb-4fd2-4b37-8596-1b7d9728bb5c # 自定义 UUID | |
alterId: 0 | |
cipher: auto | |
udp: true | |
tls: false | |
network: ws | |
servername: www.bing.com # SNI 域名,与下面 Host 一致 | |
ws-opts: | |
path: "/?ed=2048" # 自定义 path 路径 | |
headers: | |
Host: www.bing.com # Host 域名,与上面 server 字段的地址一致 | |
- name: trojan-tcp-tls # 可以自定义节点名称 | |
type: trojan | |
server: www.bing.com # 解析的域名 | |
port: 12345 # 自定义端口 | |
password: 123456789 # 自定义认证密码 | |
client-fingerprint: chrome | |
udp: true | |
sni: www.bing.com # SNI 域名,与上面 server 字段的地址一致 | |
alpn: | |
- h2 | |
- http/1.1 | |
skip-cert-verify: false | |
- name: shadowsocks # 可以自定义节点名称 | |
type: ss | |
server: www.bing.com # 解析的 IP / 域名 | |
port: 443 # 自定义端口 | |
cipher: aes-128-gcm # 自定义加密方式,详细请查阅 Clash Meta 文档 | |
password: password # 自定义认证密码 | |
udp: true | |
udp-over-tcp: false | |
udp-over-tcp-version: 2 | |
ip-version: ipv4 # IP 协议版本,如节点 IP 为 IPv6 则填写 ipv6 | |
smux: | |
enabled: false | |
- name: shadowsocks-shadowtls # 可以自定义节点名称 | |
type: ss | |
server: 1.2.3.4 # 服务器本地 IP | |
port: 443 # 自定义端口 | |
cipher: aes-128-gcm # 自定义加密方式,详细请查阅 Clash Meta 文档 | |
password: password # 自定义认证密码 | |
udp: true | |
udp-over-tcp: false | |
udp-over-tcp-version: 2 | |
ip-version: ipv4 # IP 协议版本,如节点 IP 为 IPv6 则填写 ipv6 | |
smux: | |
enabled: false | |
plugin: shadow-tls | |
client-fingerprint: chrome # 自定义浏览器指纹 | |
plugin-opts: | |
host: cloud.tencent.com # 自签证书的三方域名 | |
password: shadow_tls_password # ShadowTLS 认证密码 | |
version: 3 # ShadowTLS 协议,支持 1 / 2 / 3 | |
- name: hysteria1 # 可以自定义节点名称 | |
type: hysteria | |
server: 1.2.3.4 # 服务器本地 IP | |
port: 12345 # 自定义端口,如使用端口跳跃则改为 ports: 1000,2000-3000 | |
auth-str: 123456 # 自定义认证密码 | |
alpn: | |
- h3 | |
protocol: udp # 自定义协议:udp / wechat-video / faketcp | |
up: 20 # 自定义带宽上传限制 | |
down: 100 # 自定义带宽下载限制 | |
sni: www.bing.com # SNI 域名或自签证书的三方域名 | |
skip-cert-verify: true # 使用自签证书请保持此处为 true,如为 CA 证书建议修改为 false | |
fast-open: true | |
- name: hysteria2 # 节点名称 | |
type: hysteria2 | |
server: 1.1.1.1 # 服务器 IP | |
port: 1234 # 节点端口,如使用端口跳跃则改为 ports: 2000-3000/1000 | |
password: aa112233 # 节点认证密码 | |
sni: www.bing.com # SNI 域名或自签证书的三方域名 | |
skip-cert-verify: true # 使用自签证书请保持此处为 true,如为 CA 证书建议修改为 false | |
- name: tuic-V4 # 可以自定义节点名称 | |
server: www.bing.com # 解析的域名或 IP | |
port: 12345 # 自定义端口 | |
type: tuic | |
token: a806923b-737c-4581-8b13-56666f911866 # 自定义 Token | |
alpn: [h3] | |
disable-sni: true | |
reduce-rtt: true | |
udp-relay-mode: native | |
congestion-controller: bbr | |
- name: tuic-V5 # 可以自定义节点名称 | |
server: www.bing.com # 解析的域名或 IP | |
port: 12345 # 自定义端口 | |
type: tuic | |
uuid: a806923b-737c-4581-8b13-56666f911866 # 自定义 UUID | |
password: a806923b-737c-4581-8b13-56666f911866 # 自定义认证密码 | |
alpn: [h3] | |
disable-sni: true | |
reduce-rtt: true | |
udp-relay-mode: native | |
congestion-controller: bbr | |
- name: warp-wireguard # 可以自定义节点名称 | |
type: wireguard | |
server: 162.159.193.10 # 可自定义优选 EndPoint IP,与下方端口相对应 | |
port: 2408 # 可自定义优选 EndPoint IP,与上方 IP 相对应 | |
ip: 172.16.0.2 | |
ipv6: 2606:4700:190:814e:7de3:5ddb:9d3e:9359 # warp 的私有 ipv6 地址,如删除本行,表示仅IPV4 | |
public-key: bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo= | |
private-key: gK3C8ijdVlT7sd5fsdf5ssdfgsdfgsdfgobT2U+rgHo= # 获取 warp 的 私钥 | |
udp: true | |
# 分流组可自行创建或添加,proxies 参数下的节点名称,按需求自行增减,确保出现的节点名称在代理协议中可查找 | |
proxy-groups: | |
- name: 负载均衡 | |
type: load-balance | |
url: http://www.gstatic.com/generate_204 | |
interval: 300 | |
proxies: | |
- vless-reality-vision # 自定义添加的节点名称 | |
- vless-reality-grpc | |
- vless-xtls-rprx-vision | |
- vless-ws-tls | |
- vless-ws | |
- vmess-ws-tls | |
- vmess-ws | |
- trojan-tcp-tls | |
- shadowsocks | |
- shadowsocks-shadowtls | |
- hysteria1 | |
- hysteria2 | |
- tuic-V4 | |
- tuic-V5 | |
- warp-wireguard | |
- name: 自动选择 | |
type: url-test | |
url: http://www.gstatic.com/generate_204 | |
interval: 300 | |
tolerance: 50 | |
proxies: | |
- vless-reality-vision # 自定义添加的节点名称 | |
- vless-reality-grpc | |
- vless-xtls-rprx-vision | |
- vless-ws-tls | |
- vless-ws | |
- vmess-ws-tls | |
- vmess-ws | |
- trojan-tcp-tls | |
- shadowsocks | |
- shadowsocks-shadowtls | |
- hysteria1 | |
- hysteria2 | |
- tuic-V4 | |
- tuic-V5 | |
- warp-wireguard | |
- name: 🌍选择代理 | |
type: select | |
proxies: | |
- 负载均衡 # 自定义添加的节点名称 | |
- 自动选择 | |
- DIRECT | |
- vless-reality-vision | |
- vless-reality-grpc | |
- vless-xtls-rprx-vision | |
- vless-ws-tls | |
- vless-ws | |
- vmess-ws-tls | |
- vmess-ws | |
- trojan-tcp-tls | |
- shadowsocks | |
- shadowsocks-shadowtls | |
- hysteria1 | |
- hysteria2 | |
- tuic-V4 | |
- tuic-V5 | |
- warp-wireguard | |
# 代理规则可自行添加 | |
rules: | |
- GEOIP,LAN,DIRECT | |
- GEOIP,CN,DIRECT | |
- MATCH,🌍选择代理 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey does this bypass chinese great firewall?