ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

archlinux的clash透明代理

2022-01-01 11:33:40  阅读:146  来源: 互联网

标签:127.0 http clash 0.1 代理 archlinux proxy 7890


安装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

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有