Public | Automated Build

Last pushed: 3 months ago
Short Description
Shadowsocks-libev with net-speeder
Full Description

shadowsocks-libev_for_docker

Docker Images of Shadowsocks-libev From CentOS-7 7.3.1611 x86_64;

Support net-speeder and run with & (supervisor is better for 2 deamon run together);

No Secure in connection-limit bandwidth-limit ban-cracker !!!;

Run shadowsocks-libev service for 1 instance (ss-server);

Default rand password;

Options -p -k -m for service;

Option value -p=1949 -k=${rand and output in docker log} -m=aes-256-gcm;

Option Method are aes-256-gcm chacha20-ietf-poly1305 and 128/192 size;

Default with --fast-open -s=0.0.0.0 -t=${service default value} -a=nobody -d 8.8.8.8;

Dont support multiport or user;

Dont support number-of-open-files network-bind network-mtu mptcp port-reuse acl key;

Dont support config manager-address;

Not shadowsocks dont support forbidden-ip workers;

Dont support pid log verbose-mode;

Dont support deamon and graceful with supervisor;

Dont support kcptun finalspeed;

Dont support bbr;

Dont support ipv6 and ipv6 resovle;

Dont support obfsplugin udprelay redirectmode tunnelmode;

No Optimizing in Docker without DockerHosting support include fast-open;

DockerHub: https://hub.docker.com/r/ssorg/shadowsocks-libev_for_docker/

Github: https://github.com/ssaz/shadowsocks-libev_for_docker

Example (For Docker Hostings)

Make sure that Port and ENV SS_PORT are the same

Image: ssorg/shadowsocks-libev_for_docker
Instance: 1
Port: 1949 tcp
ENV: SS_PORT 1949
ENV: SS_PASSWORD $(PasswordYouWant)
ENV: SS_METHOD aes-256-gcm

then docker hosting will -P a rand port and generate a rand host for the container

Example (Best Practice)

docker run -d -p 19490:1949 ssorg/shadowsocks-libev_for_docker | cut -c 1-12 | xargs docker logs -f

then docker log print port, password and method.

----- ----- ----- ----- -----
----- ----- ----- ----- -----
----- ----- ----- ----- -----
ss port: 1949
ss password: XXXXXXXXXXXXXXXX
ss method: aes-256-gcm
----- ----- ----- ----- -----
----- ----- ----- ----- -----
----- ----- ----- ----- -----
net-speeder eth0 [enabled]
----- ----- ----- ----- -----
...
----- ----- ----- ----- -----
----- ----- ----- ----- -----
----- ----- ----- ----- -----

Example custom port

Make sure that -e ${SS_PORT} and -p :${SS_PORT} are the same,
example -e 'SS_PORT=123' -d -p XXXXX:123

docker run -e 'SS_PORT=22' -d -p 2222:22 ssorg/shadowsocks-libev_for_docker

Example custom port and password

docker run -e 'SS_PORT=8080' -e 'SS_PASSWORD=Passw0rd' \
-d -p 12345:8080 ssorg/shadowsocks-libev_for_docker

Example custom method

docker run -e 'SS_METHOD=chacha20-ietf-poly1305' -d -p 12345:22 ssorg/shadowsocks-libev_for_docker

Example Full params

docker run -e 'SS_PORT=1949' -e 'SS_PASSWORD=Passw0rd' -e 'SS_METHOD=aes-256-gcm' \
-d -p 12345:1949 ssorg/shadowsocks-libev_for_docker | cut -c 1-12 | xargs docker logs -f

Example Disable net-speeder

docker run -e 'NS_OFF=true' -d -p 19490:1949 \
ssorg/shadowsocks-libev_for_docker | cut -c 1-12 | xargs docker logs -f

Example change net-speeder device

then docker log print ip a result, pick the device.

docker run -e 'NS_DEVICE=eth0' -d -p 19490:1949 \
ssorg/shadowsocks-libev_for_docker | cut -c 1-12 | xargs docker logs -f

Tips

slow since QoS, change port to 80 25 443 995 3389

chacha20-ietf-poly1305 is better in some mobile device

-END-

Docker Pull Command
Owner
ssorg

Comments (0)