EDTunnel Relay clash config
介绍
嘿,朋友们!今天我要给大家介绍一个超酷的解决方案,让我们可以解决 Cloudflare Worker 不支持 UDP 的问题。你猜怎么办?没错,我们需要使用 Clash!不熟悉 Clash 的同学可别害怕,我会给你详细解释的。
首先,让我们来追溯一下问题的源头。Cloudflare Worker,唯一的问题是,它不支持 UDP 协议。对于我们这些喜欢玩游戏或者喜欢使用那些依赖 UDP 传输数据的应用的人来说,这可能是一个头疼的问题。
这时候,Clash 出现了,Clash 是一个跨平台的网络代理工具,可以帮助我们连接到互联网,并且支持主流代理协议,比如 socks、http、vmess、vless、trojan 和 Shadowsocks 等。所以,无论你使用哪种代理协议,都可以尝试使用链式代理来连接 nthlink 的 shadowsocks 节点,来使用 udp。
好了,那么问题来了,如何使用 Clash 来解决这个问题呢?其实非常简单!首先,你需要下载并安装 Clash。然后,配置 Clash 的参数,并设置好需要代理。最后,就像往常一样使用它们,但这一次你会发现 UDP 问题已经被完美解决了!是不是很简单?
yaml
port: 7890
socks-port: 7891
allow-lan: true
mode: Rule
log-level: info
external-controller: :9090
dns:
enabled: true
nameserver:
- https://doh.pub/dns-query
- https://223.5.5.5/dns-query
- https://doh.360.cn/dns-query
- https://dns.alidns.com/dns-query
fallback:
- 8.8.8.8
- 8.8.4.4
- tls://1.0.0.1:853
- tls://dns.google:853
proxy-providers:
edtunnel:
type: http
url: https://edtunnel.pages.dev/sub/uuid_your_set?format=clash
interval: 3600
path: ./provider1.yaml
health-check:
enable: true
interval: 600
# lazy: true
url: http://www.gstatic.com/generate_204
nthlink:
type: http
url: https://nth-api-sub.xn--b6gac.eu.org/api/sub_render
interval: 3600
path: ./provider2.yaml
health-check:
enable: true
interval: 600
# lazy: true
url: http://www.gstatic.com/generate_204
proxy-groups:
- name: PROXY
type: select
proxies:
- edtunnel-nthlink
use:
- edtunnel
- nthlink
- name: edtunnel
type: url-test
use:
- edtunnel
url: http://www.gstatic.com/generate_204
interval: 600
- name: nthlink
type: url-test
use:
- nthlink
url: http://www.gstatic.com/generate_204
interval: 600
- name: edtunnel-nthlink
type: relay
proxies:
- edtunnel
- nthlink
rule-providers:
reject:
{
type: http,
behavior: domain,
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt",
path: ./ruleset/reject.yaml,
interval: 86400,
}
icloud:
{
type: http,
behavior: domain,
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt",
path: ./ruleset/icloud.yaml,
interval: 86400,
}
apple:
{
type: http,
behavior: domain,
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt",
path: ./ruleset/apple.yaml,
interval: 86400,
}
proxy:
{
type: http,
behavior: domain,
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt",
path: ./ruleset/proxy.yaml,
interval: 86400,
}
direct:
{
type: http,
behavior: domain,
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt",
path: ./ruleset/direct.yaml,
interval: 86400,
}
private:
{
type: http,
behavior: domain,
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt",
path: ./ruleset/private.yaml,
interval: 86400,
}
telegramcidr:
{
type: http,
behavior: ipcidr,
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt",
path: ./ruleset/telegramcidr.yaml,
interval: 86400,
}
cncidr:
{
type: http,
behavior: ipcidr,
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt",
path: ./ruleset/cncidr.yaml,
interval: 86400,
}
lancidr:
{
type: http,
behavior: ipcidr,
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt",
path: ./ruleset/lancidr.yaml,
interval: 86400,
}
applications:
{
type: http,
behavior: classical,
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt",
path: ./ruleset/applications.yaml,
interval: 86400,
}
rules:
- "RULE-SET,applications,DIRECT"
- "RULE-SET,private,DIRECT"
- "RULE-SET,reject,REJECT"
- "RULE-SET,icloud,DIRECT"
- "RULE-SET,apple,DIRECT"
- "RULE-SET,proxy,PROXY"
- "RULE-SET,direct,DIRECT"
- "RULE-SET,lancidr,DIRECT"
- "RULE-SET,cncidr,DIRECT"
- "RULE-SET,telegramcidr,PROXY"
- "GEOIP,LAN,DIRECT"
- "GEOIP,CN,DIRECT"
- "MATCH,PROXY"