Clash_on_linux_server
Tips
Github Acceleration: https://ghproxy.com/
Steps
Download clash core
goto
https://github.com/Dreamacro/clash/releases
download corresponding releases into your server1 2 3
# use github acceleration service wget https://ghproxy.com/https://github.com/Dreamacro/clash/releases/download/v1.13.0/clash-linux-amd64-v1.13.0.gz # or manual download it and use scp/rsync to transfer it to your server
unarchive and install core change
<clash>
to the actual name of the downloaded file1 2 3 4
gzip -d <clash>.gz mv <clash>.gz clash.gz chmod +x ./clash mv ./clash /usr/bin/clash
Make clash configuration directory
|
|
Config.yaml
copy your config.yaml
and paste it on your server
|
|
Country.mmdb
Go to https://github.com/Dreamacro/maxmind-geoip/releases/
|
|
Run clash daemon
One Method: manualy run
|
|
Another Method: use service
|
|
fill it with this content:
|
|
Enable and run clash:
|
|
Show Status
|
|
(optional)Enable Web Control Panel
- Add
secret: <your password>
to/etc/clash/config.yaml
- Allow port
9090
on your vps admin panel restart clash service
1
sudo systemctl restart clash
Use Proxy
Termainal Environment Variable
use export
to enable proxy one session
use all_proxy=<cmd>
to use inline command proxy.
My fish script(~/.config/fish/functions/gfw.fish
):
|
|
Git
Recommend to use ghproxy
instead of proxy.
|
|