Sign inSign up

luxrck/shadowsocks-kcp

By luxrck

•Updated over 8 years ago

shadowsocks-libev with kcp and http proxy support (use privoxy).

Image
2

1.4K

luxrck/shadowsocks-kcp repository overview

⁠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.
PORT0
⁠shadowsocks-libev

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

Env.Val.
SS_PORT10800
SS_LOCAL_PORT1080
SS_PASSWORD123456
SS_METHODchacha20
SS_TIMEOUT600
SS_SERVER0.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_PORT9000
KCP_MODEfast
KCP_MTU1400
KCP_SNDWND1024
KCP_RCVWND1024
KCP_DATASHARD10
KCP_PARITYSHARD0

Tag summary

Content type

Image

Digest

Size

8.8 MB

Last updated

over 8 years ago

docker pull luxrck/shadowsocks-kcp