Setup clash
Download clash
1
| wget -O clash.gz https://github.com/Dreamacro/clash/releases/download/v1.16.0/clash-linux-amd64-v1.16.0.gz
|
Unzip clash
make it executable
init clash
it will generate a config file named config.yaml
in ~/.config/clash/
directory
close clash
Press Ctrl + C
to close clash
modify config file
1
| wget -U "Mozilla/6.0" -O ~/.config/clash/config.yaml 你的Clash订阅链接网址
|
start clash
set proxy
open a new terminal
1
2
| export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
|
verify proxy in use
make a get request before and after set proxy
1
| curl https://httpbin.org/ip
|
References