-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代理是成功了,分享一下 #79
Comments
.env里的CLASH_URL应该配置为什么? |
我把airtcp中下载的config.yml替换了temp下的clash.yaml,然后注释掉了start.sh中对ClASH_URL的处理,也能执行通过,显示启动成功,但是测试访问外网不行 |
哎嘿 |
1 similar comment
哎嘿 |
执行start.sh的时候 里面有一段报错: 解码后的内容不符合clash标准,尝试将其转换为标准格式 |
前加sudo试试 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
安装clash
仓库教程
开关代理
bash /soft/clash/clash-for-linux-backup-main/start.sh
ps aux |grep [c]lash-linux-amd64
请执行以下命令开启系统代理:
proxy_on
若要临时关闭系统代理,请执行:
proxy_off
若找不到proxy_on指令
source /etc/profile.d/clash.sh
测试代理情况
-L:跟随重定向
若
curl: (35) Encountered end of file
,则表示代理有问题订阅修改
开启服务
bash /soft/clash/clash-for-linux-backup-main/start.sh
proxy_on
临时关闭代理
proxy_off
关闭服务
bash /soft/clash/clash-for-linux-backup-main/shutdown.sh
服务关闭成功,请执行以下命令关闭系统代理:proxy_off
脚本有问题 就自己手选算了
排查相关指令
尝试解析
通过图形化界面firefox分析Clash Dashboard
有以下几种请求地址
PATCH http://localhost:9090/configs
{
"mode": "Global"
}
curl -XPATCH -s "$api_url/configs" -H "Content-Type: application/json" -H "Authorization: Bearer ${Secret}" -d '{"mode":"'"${mode}"'"}' > /dev/null
put http://localhost:9090/proxies/%F0%9F%94%B0%E5%9B%BD%E5%A4%96%E6%B5%81%E9%87%8F
{
"name": "专线|新加坡01解锁"
}
curl -X PUT -s "$api_url/proxies/$mgroup" -H "Content-Type: application/json" -H "Authorization: Bearer ${Secret}" --data "{\"name\":\"$proxy\"}" > /dev/null
get http://localhost:9090/proxies
curl -s -XGET -H "Content-Type: application/json" -H "Authorization: Bearer 9748570bfb2cae1549144af874eaf36b87a6f3726b85d59727866973a7cdaeb0" http://localhost:9090/proxies
get http://localhost:9090/providers/proxies
GET ws://localhost:9090/logs?token=d2c7028e1812b834690fbfcccd90721f0f8d710716559a6c6713badfc17b53c0&level=silent
需要ws的id
The text was updated successfully, but these errors were encountered: