Clash配置文件在线定义
在线地址:https://fndroid.github.io/clash-config-builder/
服务商提供的Clash配置地址一般会被CORS,所以默认情况下此工具会通过API代理其请求,如担心隐私问题,请使用Local Mode!!!
点击界面顶部Raw Config.yaml
,填入如下基础配置后点击底部Save
按钮保存
Proxy: []
Proxy Group:
- name: UrlTest
type: url-test
proxies:
- DIRECT
url: http://www.gstatic.com/generate_204
interval: 300
- name: PROXY
type: select
proxies:
- UrlTest
- name: Final
type: select
proxies:
- PROXY
- DIRECT
- name: Apple
type: select
proxies:
- DIRECT
- PROXY
- name: GlobalMedia
type: select
proxies:
- PROXY
- name: HKMTMedia
type: select
proxies:
- DIRECT
Rule:
- RULE-SET,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Unbreak.list,DIRECT
- RULE-SET,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/GlobalMedia.list,GlobalMedia
- RULE-SET,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/HKMTMedia.list,HKMTMedia
- RULE-SET,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Global.list,PROXY
- RULE-SET,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Apple.list,Apple
- RULE-SET,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/China.list,DIRECT
- GEOIP,CN,DIRECT
- MATCH,Final
点击界面顶部Subscriptions
,在打开的窗口中填入服务商提供的Clash配置文件地址(每行一个),后点击底部Save
按钮保存
点击主界面底部Sync Proxies
按钮拉取节点,节点会生成在右边More
列表中
将More
中节点拖动至Proxies
列表中即可将节点添加至对应策略组,相反,从Proxies
拖动至More
则会移除策略中该节点
点击界面底部Download Profile
后,浏览器将会提示下载
这是此工具默认情况下的模式,此模式下:
- Subscriptions节点获取会通过远程API(cloudcompute.lbyczf.com)进行代理
- 最终配置文件会通过浏览器下载
此模式需要在本地启动一个服务端,此模式下:
- Subscriptsions节点获取会通过本地服务端代理,无隐私问题
- 最终配置文件可以直接唤醒Clash for Windows进行更新
- 可以挂载在Clash for Windows中跟随其运行
- 下载
clash-config-builder-server.exe
,地址:https://github.com/Fndroid/clash-config-builder-server/releases - 进入Clash for Windows中General界面,点击
General YML
下方小字体,打开文本编辑 - 在文件末端输入:
cfw-child-process: - command: clash-config-builder-server.exe options: cwd: C:\ # clash-config-builder-server.exe所在目录
- 重启Clash for Windows,刷新网页,如右下角显示绿色
Local Mode
即表示开启成功