clash使用

linux软件安装

mihomo的config要放在 $HOME/.config/mihomo

要下一个 mmdb 命名为Country.mmdb https://gitee.com/mirrors/Pingtunnel/blob/master/GeoLite2-Country.mmdb

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cat < EOF > /lib/systemd/system/clash@.service
[Unit]
Description=A rule based proxy in Go for %i.
After=network.target

[Service]
Type=simple
User=%i
Restart=on-abort
ExecStart=/usr/local/bin/clash

[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable clash@root.service
systemctl restart clash@root.service
systemctl status clash@root.service

HTTPS_PROXY=http://localhost:7890 curl https://google.com

docker proxy

docker run -d –restart=always –name sub -p 25500:25500 –add-host=”host.docker.internal:host-gateway” -e HTTPS_PROXY=http://host.docker.internal:7890 tindy2013/subconverter:latest

Ref

https://github.com/MetaCubeX/mihomo

https://github.com/Sitoi/SystemdClash


clash使用
http://grasscube.top/2025/01/29/clash使用/
作者
grasscube
发布于
2025年1月29日
许可协议