teddysun/shadowsocks-libev

By teddysun

Updated about 2 months ago

Shadowsocks-libev Docker Image by Teddysun

Image
Networking

1M+

Shadowsocks-libev Docker Image by Teddysun

Shadowsocks

shadowsocks-libev is a lightweight secured socks5 proxy for embedded devices and low end boxes. It is a port of shadowsocks created by @clowwindy maintained by @madeye and @linusyang.

Based on alpine with latest version shadowsocks-libev and v2ray-plugin, xray-plugin.

Docker images are built for quick deployment in various computing cloud providers. For more information on docker and containerization technologies, refer to official document.

Supported tags and respective Dockerfile links
Reference
  • Supported architectures (more info): amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
Prepare the host

If you need to install docker by yourself, follow the official installation guide.

Pull the image
$ docker pull teddysun/shadowsocks-libev

This pulls the latest release of shadowsocks-libev.

It can be found at Docker Hub.

Start a container

You must create a configuration file/etc/shadowsocks-libev/config.json in host at first:

$ mkdir -p /etc/shadowsocks-libev

A sample in JSON like below:

$ cat > /etc/shadowsocks-libev/config.json <<EOF
{
    "server":"0.0.0.0",
    "server_port":9000,
    "password":"password0",
    "timeout":300,
    "method":"aes-256-gcm",
    "fast_open":false,
    "nameserver":"8.8.8.8",
    "mode":"tcp_and_udp"
}
EOF

If you want to enable v2ray-plugin, a sample in JSON like below:

$ cat > /etc/shadowsocks-libev/config.json <<EOF
{
    "server":"0.0.0.0",
    "server_port":9000,
    "password":"password0",
    "timeout":300,
    "method":"aes-256-gcm",
    "fast_open":false,
    "nameserver":"8.8.8.8",
    "mode":"tcp_and_udp",
    "plugin":"v2ray-plugin",
    "plugin_opts":"server"
}
EOF

If you want to enable xray-plugin, a sample in JSON like below:

$ cat > /etc/shadowsocks-libev/config.json <<EOF
{
    "server":"0.0.0.0",
    "server_port":9000,
    "password":"password0",
    "timeout":300,
    "method":"aes-256-gcm",
    "fast_open":false,
    "nameserver":"8.8.8.8",
    "mode":"tcp_and_udp",
    "plugin":"xray-plugin",
    "plugin_opts":"server"
}
EOF

For more v2ray-plugin configrations please visit v2ray-plugin usage.

For more xray-plugin configrations please visit xray-plugin usage.

This container with sample configuration /etc/shadowsocks-libev/config.json

There is an example to start a container that listens on 9000 (both TCP and UDP):

$ docker run -d -p 9000:9000 -p 9000:9000/udp --name ss-libev --restart=always -v /etc/shadowsocks-libev:/etc/shadowsocks-libev teddysun/shadowsocks-libev

Warning: The port number must be same as configuration and opened in firewall.

Docker Pull Command

docker pull teddysun/shadowsocks-libev