shadowsocks based on python:2.7.11-alpine
758
Dockerfile linksYou 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 │ │
│ └───────────┘ │ │ └────────────┘ │
└───────────────┘ └────────────────┘
$ 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
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
$ 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&hl=zh-CN&pref=hkredirect&pval=yes&q=http://www.google.com.hk/%3Fgws_rd%3Dcr&ust=1458120190859847&usg=AFQjCNHE7r5DDttjnTLVohlrDJm5nWD51Q">here</A>.
</BODY></HTML>
Done.
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.
Content type
Image
Digest
Size
24.4 MB
Last updated
over 10 years ago
docker pull sean8694/shadowsocks