- You can start Docker container with the following command (make sure to replace
<USER>
and<PASSWORD>
placeholders with your own credentials). - if
<USER>
not set then ss5 server NoAuthAuthenticator. - if
<LISTEN>
not set then listen 127.0.0.1:1080
docker run -d --name ss5 --network=host -e USER=<USER> -e PASSWORD=<PASSWORD> -e LISTEN=<LISTEN ADRR> ananclub/ss5
The following command will perform a build of a static binary for Linux. The result of this build can be used by a scratch Docker image. This reduces container size drastically.
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o server .
-
The original idea. Actually, this project is just a very lightweight variation of the ocassio's one: https://github.com/ocassio/go-socks5-proxy
-
SOCKS5 server implementation for Go: https://github.com/armon/go-socks5