iptables.Clash requires Go >= 1.13. You can build it from source:
$ go get -u -v github.com/Hk-Gosuto/clash
Pre-built binaries are available here: release Pre-built Premium binaries are available here: Premium release. Source is not currently available.
Check Clash version with:
$ clash -v
Unfortunately, there is no native or elegant way to implement daemons on Golang. We recommend using third-party daemon management tools like PM2, Supervisor or the like to keep Clash running as a service.
In the case of pm2, start the daemon this way:
$ pm2 start clash
If you have Docker installed, it's recommended to deploy Clash directly using docker-compose: run Clash in Docker
The default configuration directory is $HOME/.config/clash.
The name of the configuration file is config.yaml.
If you want to use another directory, use -d to control the configuration directory.
For example, you can use the current directory as the configuration directory:
$ clash -d .
Content type
Image
Digest
Size
8.3 MB
Last updated
over 5 years ago
docker pull gosuto/clash