3 months ago

VPS linode
64bit, OS: Ubuntu 16.04 LTS

Update system

apt update && apt upgrade

Install docker

apt install docker.io

Start docker

systemctl start docker
systemctl enable docker

pull docker image we need

docker pull imhang/kcp-shadowsocks-docker

run image for test

docker run -p 443:443 -p 443:443/udp -p 9443:9443/udp --rm -it imhang/kcp-shadowsocks-docker

download mac client from github
kcptun

run kcptune client command is

./client_darwin_amd64 -r “yourvps:9443" -l ":8388" --crypt none --key 123456 --mtu 1400 --parityshard 0 --nocomp false

run ssr client with

PORT 443
PASSWORD 123456
METHOD   chacha20
SS_TIMEOUT  600

Now we need to run the server as service

docker run -d --restart=always -e "SS_PORT=443" -e "SS_PASSWORD=123456" -e "SS_METHOD=chacha20" -e "SS_TIMEOUT=600" -e "KCP_PORT=9443" -e "KCP_MODE=fast" -e "MTU=1400" -e "SNDWND=1024" -e "RCVWND=1024" -p 443:443 -p 443:443/udp -p 9443:9443/udp --name ssserver imhang/kcp-shadowsocks-docker

and client command become

./client_darwin_amd64 -r "45.79.215.97:9443" -l ":8388" --crypt none --key 123456 --mtu 1400 --parityshard 0 --nocomp false --sndwnd 1024 --rcvwnd 1024
← install process 数字货币买入指南 01 →