我把`CLASH_SECRET`设置为123,这会比较方便。最后在左下角没有任何模式的情况下,输入":wq"保存并退出。 3. 启动程序 sudo bash start.sh 开启/关闭代理 开启: proxy_on 关闭: proxy_off 网络测试 curl https://www.google.com UI 面板 你的IP地址:9090/ui ...
export all_proxy="socks5://127.0.0.1:7890" echo "Clash Proxy:ON" } noproxy () { unset http_proxy unset https_proxy unset all_proxy echo "Clash Proxy:OFF" } 2. 使用ui界面 首先在一个终端内输入clash 然后在另一个终端内输入proxy 在浏览器内打开转发端口9090(具体的设置可以去看config.yaml里...
Linux Clash Proxy Setting Step 1: Download the Linux Clash Linux Clash Step 2: Unzip the file and type./cfw --no-sandboxto run the Clash. Step 3: Click the "Allow LAN" and "Start with Linux" in "General". Step 4: Paste the Clash Subscribe URL in "Profiles". Step 5: Change the...
[root@kxsw-1 clash]# export http_proxy=http://127.0.0.1:7890 [root@kxsw-1 clash]# export https_proxy=http://127.0.0.1:7890 #注意这行是必须执行的 [root@kxsw-1 clash]# export no_proxy="localhost, 127.0.0.1" [root@kxsw-1 clash]# vim /etc/profile export http_proxy=http://kxsw...
打开Clash配置文件: Clash的配置文件通常位于~/.config/clash/config.yaml。如果该文件不存在,Clash在首次运行时会自动创建它。 编辑配置文件,添加代理服务器信息: 使用你喜欢的文本编辑器打开config.yaml文件。例如,使用nano: bash nano ~/.config/clash/config.yaml 在配置文件中,你可以添加代理服务器信息。一...
可以看到Clash-Linux-折腾笔记中是强制指定了客户端使用 static ip,但是通过 openwrt 的/etc/config/dhcp也可以做到。 config host option name 't400' option dns '1' option mac '00:1c:25:a2:54:c6' option ip '10.10.10.3' option leasetime 'infinite' ...
clash 的配置文件在~/.config/clash/config.yaml,打开 修改外部控制设置(external-controller)地址为:0.0.0.0:9990,使内外网都可以访问这个地址 设置系统代理: 1 sudo nano /etc/environment 加入以下三行 1 2 3 export http_proxy="http://127.0.0.1:7890" ...
[ OK ] 正在启动Clash服务... 服务启动成功! [ OK ] Clash Dashboard 访问地址:http://<ip>:9090/ui Secret:xxxxxxxxxxxxx 请执行以下命令加载环境变量:source/etc/profile.d/clash.sh 请执行以下命令开启系统代理: proxy_on 若要临时关闭系统代理,请执行: proxy_off ...
1.使用wget下载linux安装包,保存并解压至/opt/clash文件夹中。 mkdir /opt/clash && cd /opt/clash wget https://github.com/Dreamacro/clash/releases/download/v1.10.0/clash-linux-amd64-v1.10.0.gz unar clash-linux-amd64-v1.10.0.gz mv clash-linux-amd64-v1.10.0 clash ...
[ OK ] 正在下载Clash配置文件... 配置文件config.yaml下载成功! [ OK ] 正在启动Clash服务... 服务启动成功! [ OK ] Clash Dashboard 访问地址:http://<ip>:9090/ui Secret:xxxxxxxxxxxxx 请执行以下命令加载环境变量:source/etc/profile.d/clash.sh 请执行以下命令开启系统代理: proxy_on 若要临时关闭...