person-share/clash_v2.yml
2024-07-29 08:49:07 +00:00

510 lines
15 KiB
YAML

# HTTP 端口
mixed-port: 7890
hosts:
'lan.router-ikuai.cc': '192.168.11.1'
'lan.router-jellyfin.cc': '192.168.11.16'
'ts.router-jellyfin.cc': '100.64.9.93'
'ts.router-pve.cc': '100.115.111.93'
'lan.router-pve.cc': '192.168.11.201'
'ts.router-dsm.cc': '100.120.124.68'
'lan.router-dsm.cc': '192.168.11.18'
'ts.router-win11.cc': '100.108.181.38'
'ts.router-ha.cc': '100.117.238.13'
# Linux 及 macOS 的 redir 端口
# redir-port: 7892
allow-lan: false
# 仅适用于设置 allow-lan 为 true 时
# "*": 绑定所有 IP 地址
# 192.168.122.11: 绑定单个 IPv4 地址
# "[aaaa::a8aa:ff:fe09:57d8]": 绑定单个 IPv6 地址
# bind-address: "*"
# Rule / Global / Direct (默认为 Rule 模式)
mode: Rule
# 设置输出日志的等级 (默认为 info)
# info / warning / error / debug / silent
log-level: info
# RESTful API for clash
external-controller: 127.0.0.1:9090
proxy-providers:
AirportPaopaoDogAll:
type: http
path: ./providers/proxy/AirportPaopaoDogAll.yaml
url: "https://a.ppconverter.eu.org/api/convert?url=https://cdn1715101506.ppgnginx.com/api/v1/client/subscribe?token=986a148fd33acb74ddcdc6bdc1ace1b7"
interval: 1800
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
AirportPaopaoDogAmerica:
type: http
path: ./providers/proxy/AirportPaopaoDogAmerica.yaml
url: "https://a.ppconverter.eu.org/api/convert?url=https://cdn1715101506.ppgnginx.com/api/v1/client/subscribe?token=986a148fd33acb74ddcdc6bdc1ace1b7"
interval: 1800
filter: '美国'
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
AirportPaopaoDogSingapore:
type: http
path: ./providers/proxy/AirportPaopaoDogSingapore.yaml
url: "https://a.ppconverter.eu.org/api/convert?url=https://cdn1715101506.ppgnginx.com/api/v1/client/subscribe?token=986a148fd33acb74ddcdc6bdc1ace1b7"
interval: 1800
filter: '新加坡'
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
AirportPaopaoDogHongkong:
type: http
path: ./providers/proxy/AirportPaopaoDogHongkong.yaml
url: "https://a.ppconverter.eu.org/api/convert?url=https://cdn1715101506.ppgnginx.com/api/v1/client/subscribe?token=986a148fd33acb74ddcdc6bdc1ace1b7"
interval: 1800
filter: '香港'
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
AirportShandianProAll:
type: http
path: ./providers/proxy/AirportShandianProAll.yaml
url: "https://a.ppconverter.eu.org/api/convert?url=https%3A%2F%2Fb88c32b7-e6db-4dc8-b44f-a13e5160f674.nginxsd.xyz%2Fapi%2Fv1%2Fclient%2Fsubscribe%3Ftoken%3Da629ecf09cd5408c12610a8171085d7c"
interval: 1800
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
AirportShandianProForegin:
type: http
path: ./providers/proxy/AirportShandianProForegin.yaml
url: "https://a.ppconverter.eu.org/api/convert?url=https%3A%2F%2Fb88c32b7-e6db-4dc8-b44f-a13e5160f674.nginxsd.xyz%2Fapi%2Fv1%2Fclient%2Fsubscribe%3Ftoken%3Da629ecf09cd5408c12610a8171085d7c"
interval: 1800
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
AirportShandianProAmerica:
type: http
path: ./providers/proxy/AirportShandianProAmerica.yaml
url: "https://a.ppconverter.eu.org/api/convert?url=https%3A%2F%2Fb88c32b7-e6db-4dc8-b44f-a13e5160f674.nginxsd.xyz%2Fapi%2Fv1%2Fclient%2Fsubscribe%3Ftoken%3Da629ecf09cd5408c12610a8171085d7c"
interval: 1800
filter: '美国'
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
AirportShandianProJapan:
type: http
path: ./providers/proxy/AirportShandianProJapan.yaml
url: "https://a.ppconverter.eu.org/api/convert?url=https%3A%2F%2Fb88c32b7-e6db-4dc8-b44f-a13e5160f674.nginxsd.xyz%2Fapi%2Fv1%2Fclient%2Fsubscribe%3Ftoken%3Da629ecf09cd5408c12610a8171085d7c"
interval: 1800
filter: '日本'
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
AirportShandianProTaiwan:
type: http
path: ./providers/proxy/AirportShandianProJapan.yaml
# url: "https://a.ppconverter.eu.org/api/convert?url=https%3A%2F%2Fb88c32b7-e6db-4dc8-b44f-a13e5160f674.nginxsd.xyz%2Fapi%2Fv1%2Fclient%2Fsubscribe%3Ftoken%3Da629ecf09cd5408c12610a8171085d7c"
url: "https://a.ppconverter.eu.org/api/convert?url=https://b88c32b7-e6db-4dc8-b44f-a13e5160f674.shandiannginx.com/api/v1/client/subscribe?token=a629ecf09cd5408c12610a8171085d7c"
interval: 1800
filter: '台湾'
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
AirportShandianProSingapore:
type: http
path: ./providers/proxy/AirportShandianProSingapore.yaml
url: "https://a.ppconverter.eu.org/api/convert?url=https%3A%2F%2Fb88c32b7-e6db-4dc8-b44f-a13e5160f674.nginxsd.xyz%2Fapi%2Fv1%2Fclient%2Fsubscribe%3Ftoken%3Da629ecf09cd5408c12610a8171085d7c"
interval: 1800
filter: '新加坡'
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
AirportShandianProHongkong:
type: http
path: ./providers/proxy/AirportShandianProHongkong.yaml
url: "https://a.ppconverter.eu.org/api/convert?url=https%3A%2F%2Fb88c32b7-e6db-4dc8-b44f-a13e5160f674.nginxsd.xyz%2Fapi%2Fv1%2Fclient%2Fsubscribe%3Ftoken%3Da629ecf09cd5408c12610a8171085d7c"
interval: 1800
filter: '香港'
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
proxies:
- name: "router-local-reality"
type: socks5
server: 192.168.11.13
port: 7891
- name: "local-reality"
type: socks5
server: 127.0.0.1
port: 10000
- name: "v2ray-yxcft2-likezgq"
type: vmess
server: 18.65.181.229
port: 80
uuid: 318cf970-5945-46e9-cf6d-660bdf65444a
alterId: 0
cipher: none
skip-cert-verify: true
network: ws
#tls-hostname: v2.zgqqq.top # for TLS SNI
#ws-path: /status
# ws-headers: #这一行后面不要写东西
# Host: v5.zhenvip.wang # 填写伪装域名
ws-opts:
headers:
Host: d2uhf0tsqcoq30.cloudfront.net
# host: d2uhf0tsqcoq30.cloudfront.net
path: /status
## VMess
- name: "vmess-cfws-likezgq"
type: vmess
# server: 104.27.80.65
server: 172.64.93.84
port: 8080
uuid: e3a45881-f11b-42da-b0d0-4f1f57c5d57b
alterId: 0
cipher: none
#udp: true
#tls: true
skip-cert-verify: true
network: ws
#tls-hostname: v2.zgqqq.top # for TLS SNI
# ws-path: /pe7MCcsa7
# ws-headers: #这一行后面不要写东西
# Host: v5.zhenvip.wang # 填写伪装域名
ws-opts:
headers:
Host: cfws.likezgq.top
path: /ws
## VMess
- name: "v2ray-yxcf-likezgq"
type: vmess
# server: 141.101.115.236
# server: 104.16.29.191
server: 172.64.93.84
port: 2053
uuid: a226be6c-2b1c-49c3-ad6b-f5857704f003
alterId: 0
cipher: none
#udp: true
tls: true
skip-cert-verify: true
network: ws
tls-hostname: cftls.likezgq.top # for TLS SNI
# ws-path: /pe7MCcsa7
# ws-headers: #这一行后面不要写东西
# Host: v5.zhenvip.wang # 填写伪装域名
ws-opts:
headers:
Host: cftls.likezgq.top
path: /tls
proxy-groups:
- name: GPT_LOWEST_DELAY1
type: url-test
# url: http://www.gstatic.com/generate_204
url: https://github.com
interval: 150
tolerance: 30 #延迟相差 30ms 以内就不⽤切换
use:
# - AirportPaopaoDogSingapore
# - AirportShandianProSingapore
- AirportShandianProTaiwan
- AirportShandianProJapan
- name: GPT_SELECTED
type: select
proxies:
# - "v2ray-yxcft2-likezgq"
- "v2ray-yxcf-likezgq"
- "local-reality"
- "router-local-reality"
- GPT_LOWEST_DELAY1
- PG_AMERICA
- name: LOWEST_DELAY1
type: url-test
url: http://www.gstatic.com/generate_204
interval: 150
tolerance: 30 #延迟相差 30ms 以内就不⽤切换
use:
- AirportShandianProHongkong
- AirportPaopaoDogHongkong
proxies:
# - "v2ray-yxcft2-likezgq"
# - "v2ray-yxcf-likezgq"
# - DIRECT
- name: LOWEST_DELAY2
type: url-test
url: http://www.gstatic.com/generate_204
interval: 250
use:
# - AirportPaopaoDogAll
# - AirportShandianProAll
- AirportShandianProHongkong
- AirportPaopaoDogHongkong
proxies:
# - "v2ray-yxcft2-likezgq"
# - "v2ray-yxcf-likezgq"
# - DIRECT
- name: PROXY
# type: load-balance
# strategy: consistent-hashing
type: select
url: http://www.google.com/generate_204
interval: 300
proxies:
- LOWEST_DELAY1
- LOWEST_DELAY2
- GPT_SELECTED
- name: PG_AMERICA
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
use:
- AirportShandianProAmerica
- AirportPaopaoDogAmerica
proxies:
- "v2ray-yxcft2-likezgq"
- "v2ray-yxcf-likezgq"
- name: PG_SB_AMERICA
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
proxies:
- "v2ray-yxcft2-likezgq"
- "v2ray-yxcf-likezgq"
- name: PG_JAPAN
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
use:
- AirportShandianProJapan
- name: PG_TAIWAN
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
use:
- AirportShandianProTaiwan
- name: PG_SINGLEAPORE
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
use:
- AirportShandianProSingapore
- AirportPaopaoDogSingapore
rule-providers:
reject:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
path: ./ruleset/reject.yaml
interval: 86400
icloud:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
path: ./ruleset/icloud.yaml
interval: 86400
apple:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
path: ./ruleset/apple.yaml
interval: 86400
google:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt"
path: ./ruleset/google.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
path: ./ruleset/proxy.yaml
interval: 86400
direct:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
path: ./ruleset/direct.yaml
interval: 86400
private:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt"
path: ./ruleset/private.yaml
interval: 86400
# gfw:
# type: http
# behavior: domain
# url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt"
# path: ./ruleset/gfw.yaml
# interval: 86400
tld-not-cn:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/tld-not-cn.txt"
path: ./ruleset/tld-not-cn.yaml
interval: 86400
telegramcidr:
type: http
behavior: ipcidr
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt"
path: ./ruleset/telegramcidr.yaml
interval: 86400
cncidr:
type: http
behavior: ipcidr
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
path: ./ruleset/cncidr.yaml
interval: 86400
lancidr:
type: http
behavior: ipcidr
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
path: ./ruleset/lancidr.yaml
interval: 86400
applications:
type: http
behavior: classical
url: "https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt"
path: ./ruleset/applications.yaml
interval: 86400
pornhub:
type: http
behavior: domain
url: "https://raw.gitmirror.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/Pornhub.yaml"
path: ./ruleset/pornhub.yaml
interval: 86400
openai:
type: http
behavior: domain
url: "https://raw.gitmirror.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/OpenAi.yaml"
path: ./ruleset/openai.yaml
interval: 86400
github:
type: http
behavior: domain
url: "https://raw.gitmirror.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/Github.yaml"
path: ./ruleset/github.yaml
interval: 86400
tiktok:
type: http
behavior: domain
url: "https://raw.gitmirror.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/TikTok.yaml"
path: ./ruleset/tiktok.yaml
interval: 86400
rules:
# 自定义规则
- IP-CIDR,100.64.0.0/10,DIRECT
# Windows Tailscale processes
- PROCESS-NAME,Tailscale.exe,DIRECT
- PROCESS-NAME,Tailscale Service.exe,DIRECT
- PROCESS-NAME,tailscaled.exe,DIRECT
- PROCESS-NAME,tailscale-ipn.exe,DIRECT
# macOS Tailscale processes
- PROCESS-NAME,tailscaled,DIRECT
- PROCESS-NAME,Tailscale,DIRECT
- DOMAIN-SUFFIX,likezgq.pub,DIRECT
- DOMAIN-SUFFIX,home.pub,DIRECT
- DOMAIN-SUFFIX,ycombinator.com,PROXY
- DOMAIN-SUFFIX,distrowatch.com,PROXY
# - DOMAIN-SUFFIX,openai.com,PG_AMERICA
- DOMAIN-SUFFIX,anthropic.com,PG_AMERICA
# - DOMAIN-SUFFIX,claude.ai,PG_AMERICA
# - DOMAIN-SUFFIX,openai.com,PG_SB_AMERICA
- DOMAIN,google.com,GPT_SELECTED
- DOMAIN,huggingface.co,PG_SB_AMERICA
# - DOMAIN-SUFFIX,openai.com,PG_SINGLEAPORE
# - DOMAIN-SUFFIX,chatgpt.com,PG_SINGLEAPORE
- DOMAIN-SUFFIX,openai.com,GPT_SELECTED
- DOMAIN-KEYWORD,openai,GPT_SELECTED
- DOMAIN-KEYWORD,chatgpt,GPT_SELECTED
- DOMAIN-KEYWORD,youtube,GPT_SELECTED
- DOMAIN-SUFFIX,v2ex.com,GPT_SELECTED
- DOMAIN-SUFFIX,bard.google.com,PG_AMERICA
- DOMAIN-SUFFIX,one.google.com,PG_AMERICA
- DOMAIN-SUFFIX,kgithub.com,DIRECT
- DOMAIN-KEYWORD,gemini,PG_SINGLEAPORE
- DOMAIN-KEYWORD,claude,GPT_SELECTED
- DOMAIN-KEYWORD,avgle,PG_JAPAN
- DOMAIN-KEYWORD,ra2web.com,DIRECT
- DOMAIN-KEYWORD,chronodivide.com,DIRECT
- DOMAIN-KEYWORD,bun.sh.cn,DIRECT
- DOMAIN-KEYWORD,paypal,PG_AMERICA
- DOMAIN-KEYWORD,paypa1,PG_AMERICA
- DOMAIN-KEYWORD,pikpak,GPT_SELECTED
- DOMAIN-SUFFIX,github.com:22,GPT_SELECTED
- DOMAIN-KEYWORD,github,GPT_SELECTED
- DOMAIN-KEYWORD,discord,PG_AMERICA
- DOMAIN-KEYWORD,us-api,PG_AMERICA
- RULE-SET,applications,DIRECT
- DOMAIN,clash.razord.top,DIRECT
- DOMAIN,yacd.haishan.me,DIRECT
# - RULE-SET,openai,PG_JAPAN
- RULE-SET,tiktok,PG_AMERICA
- RULE-SET,private,DIRECT
- RULE-SET,reject,REJECT
- RULE-SET,icloud,DIRECT
- RULE-SET,apple,DIRECT
- RULE-SET,google,DIRECT
- RULE-SET,proxy,PROXY
- RULE-SET,direct,DIRECT
- RULE-SET,telegramcidr,PROXY,no-resolve
- RULE-SET,lancidr,DIRECT,no-resolve
- RULE-SET,cncidr,DIRECT,no-resolve
- GEOIP,LAN,DIRECT,no-resolve
- GEOIP,CN,DIRECT
- DST-PORT,22,PG_SB_AMERICA
- MATCH,PROXY