Sign inSign up

sean8694/shadowsocks

By sean8694

Updated over 10 years ago

shadowsocks based on python:2.7.11-alpine

Image
0

758

sean8694/shadowsocks repository overview

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.

Tag summary

Content type

Image

Digest

Size

24.4 MB

Last updated

over 10 years ago

docker pull sean8694/shadowsocks