Skip to content

Instantly share code, notes, and snippets.

@Lax
Created July 24, 2018 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lax/07023d97edad0744dec63c328dcf423a to your computer and use it in GitHub Desktop.
Save Lax/07023d97edad0744dec63c328dcf423a to your computer and use it in GitHub Desktop.
shadowsocks over kcptun quick setup
version: "3.2"
services:
shadowsocks:
image: centos
ports:
- 2048:2048
restart: always
command: bash -c "yum install python-setuptools -y && easy_install pip && pip install shadowsocks && ssserver -p 2048 -k ${PASSWORD:-DEFAULT_PASSWORD} -t 300 --fast-open --workers 3 -m aes-256-cfb --user nobody"
kcptun:
image: xtaci/kcptun
ports:
- 4096:29900/udp
links:
- shadowsocks
restart: always
command: server -l ':29900' -t ss:2048 -mode fast --key ${PASSWORD:-DEFAULT_PASSWORD} --crypt aes-192
volumes:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment