Public Repository

Last pushed: 2 years ago
Short Description
shadowsocks based on python:2.7.11-alpine
Full Description

Supported tags and respective Dockerfile links

Quick Start

You can buy a vps in Tokyo as server and client in Mainland China.

    ┌───────────────┐           ┌────────────────┐
    │client host    │           │server host     │
    │               │           │                │
    │    http req   │           │                │
    │    │          │           │                │
    │    │ socks5   │           │                │
    │    │ port:1080│           │                │
    │    ↓          │           │                │
    │ ┌───────────┐ │     ss    │ ┌────────────┐ │
    │ │           │ │ port:3389 │ │            │ │
    │ │shadowsocks┼─┼───────────┼─┼→shadowsocks│ │
    │ │  sslocal  │ │           │ │  ssserver  │ │
    │ └───────────┘ │           │ └────────────┘ │
    └───────────────┘           └────────────────┘

Server Side

$ docker run --net=host -d sean8694/shadowsocks ssserver -p MY_PORT -k MY_PASSWORD start

You need to replace MY_PORT and MY_PASSWORD.

For example:

$ docker run --net=host -d sean8694/shadowsocks ssserver -p 3389 -k longlivechairmanmao start

Client Side

For desktop, shadowsocks-gui client is recommended.
https://github.com/shadowsocks/shadowsocks-gui

For linux without gui, the image can work as client.

$ docker run --net=host -d sean8694/shadowsocks sslocal -s MY_SERVER_IP -p MY_PORT -k MY_PASSWORD start

You need to replace MY_SERVER_IP, MY_PORT and MY_PASSWORD.
MY_PORT and MY_PASSWORD are the server configs.
MY_SERVER_IP is the ip of the server.

For example:

$ docker run --net=host -d sean8694/shadowsocks sslocal -s 133.103.29.38 -p 3389 -k longlivechairmanmao start

Test

$ export http_proxy=socks5://127.0.0.1:1080
$ export https_proxy=socks5://127.0.0.1:1080
$ curl www.google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.com.hk/url?sa=p&amp;hl=zh-CN&amp;pref=hkredirect&amp;pval=yes&amp;q=http://www.google.com.hk/%3Fgws_rd%3Dcr&amp;ust=1458120190859847&amp;usg=AFQjCNHE7r5DDttjnTLVohlrDJm5nWD51Q">here</A>.
</BODY></HTML>

Done.

PS

MAKE SURE the port of server is not blocked by firewall.

If you need a http proxy, privoxy may be a good choice.
Click privoxy for more infomation.

Docker Pull Command
Owner
sean8694

Comments (0)