archlinux的clash透明代理
作者:互联网
安装Clash
sudo pacman -S clash
添加 Clash 至守护进程
创建 systemd 配置文件 /etc/systemd/system/clash.service
[Unit]
Description=A rule based proxy in Go for %i.
After=network.target
[Service]
Type=simple
User=%i
Restart=always
ExecStart=/usr/bin/clash
[Install]
WantedBy=multi-user.target
系统代理设置
编辑配置文件 /etc/environment如下
http_proxy="http://127.0.0.1:7890"
https_proxy="http://127.0.0.1:7890"
HTTP_PROXY="http://127.0.0.1:7890"
HTTPS_PROXY="http://127.0.0.1:7890"
socks_proxy="127.0.0.1:7891"
no_proxy="localhost,127.0.0.1"
添加 Clash 至守护进程并立即启动
sudo systemctl enable clash@username.service && sudo systemc start clash@username.service
打开Clash web管理面板
浏览器输入:https://clash.razord.top/#/proxies
标签:127.0,http,clash,0.1,代理,archlinux,proxy,7890 来源: https://www.cnblogs.com/shanexie/p/15755019.html