Skip to content

ucaime/docker-shadowsocks-kcp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Start

To start shadowsocks, run $ docker run -d -p10800:10800 -p10800:10800/udp -p9000:9000/udp luxrck/shadowsocks-kcp, this will start shadowsocs at port:10800 with kcptun at port:9000 in server mode. Use --crypt none --mode fast --mtu 1400 --sndwnd 1024 --rcvwnd 1024 --parityshard 0 --nocomp as the command line arguments of your kcptun client.

Enable BBR congestion control algorithm

For one use kernel version >= 4.9, should enable TCP_CONG_BBR in your host os in order to get a better network performance (especially in high packet-loss situation).

Usage

$ docker run -it --rm luxrck/shadowsocks-kcp --help

shadowsocks-kcp uses server mode with kcptun enabled by default

Options:
	-c|--client    start in client mode
	--no-kcp       disable kcptun

Environments

Change these environments list below to apply new settings.

privoxy

Set PORT to an non-zero value to enable privoxy http proxy (only avaliable in client mode).

Env. Val.
PORT 0
shadowsocks-libev

Shadowsocks with -u (udp relay), --fast-open (tcp fast-open) enabled.

Env. Val.
SS_PORT 10800
SS_LOCAL_PORT 1080
SS_PASSWORD 123456
SS_METHOD chacha20
SS_TIMEOUT 600
SS_SERVER 0.0.0.0
kcptun

kcptun with --crypt none, --nocomp enabled. Make sure to change client's command line arguments if you change these.

Env. Val.
KCP_PORT 9000
KCP_MODE fast
KCP_MTU 1400
KCP_SNDWND 1024
KCP_RCVWND 1024
KCP_DATASHARD 10
KCP_PARITYSHARD 0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%