Sign inSign up

zharry/shadowsocks-obfs

By zharry

Updated about 8 years ago

Shadowsocks with Simple-Obfs

Image
1

2.7K

zharry/shadowsocks-obfs repository overview

Usage

docker run -d zharry/shadowsocks-obfs /ss-server.sh

Expose an outbound port and mount a new configuration file to run your own server.

Shadowsocks Default Configuration

File Location at: /etc/shadowsocks-libev/config.json

{
    "server":"0.0.0.0",
    "server_port":443,
    "password":"Shadow3251",
    "method":"chacha20-ietf-poly1305",
    "timeout":1800,
    "udp_timeout":1800,
    "plugin":"obfs-server",
    "plugin_opts":"obfs=tls;fast-open;failover=mzstatic.com:443",
    "fast_open":true,
    "reuse_port":true,
    "nofile":512000,
    "nameserver":"8.8.8.8,8.8.4.4",
    "dscp":"EF",
    "mode":"tcp_and_udp",
    "mtu":1500,
    "mptcp":false,
    "ipv6_first":false,
    "use_syslog":true,
    "no_delay":true,
}

How it was built

This is a gross simplification of what was actually done to make the image. Unfortunately, due to how this specific installation of shadowsocks was made, a Dockerfile could not be used. So the following commands are just a summary of how the image was built.

FROM ubuntu:17.10
RUN apt update -y && apt upgrade -y
RUN wget https://raw.githubusercontent.com/Unbinilium/Twist/master/twist -O twist.sh && chmod -x twist.sh && bash twist.sh
CMD /usr/local/bin/ss-server -uv -c /etc/shadowsocks-libev/config.json -f /var/run/shadowsocks-libev.pid

Credits

This image is based on the "Shadowsocks with simple obfuscation" guide found on reddit here: https://www.reddit.com/r/dumbclub/comments/7hwr7f/guide_shadowsocks_with_simple_obfuscation/ Slight modifications were made to the default encryption method and password, along with the removal of many unused programs and libaries to bring the filesize down.

Tag summary

Content type

Image

Digest

Size

118.8 MB

Last updated

about 8 years ago

docker pull zharry/shadowsocks-obfs