privoxy convert socks5 to http proxy.
10K+
Dockerfile linksShadowsocks is recommended to work with it. More infomation about shadowsocks:
https://hub.docker.com/r/sean8694/shadowsocks/
┌───────────────┐
│client host │
│ ┌───────────┐ │
http req │ │ │ │
port:5678 ─┼─┼→ privoxy │ │
│ │ │ │
│ └───────────┘ │
│ │ socks5 │ ┌────────────────┐
│ ↓ port:1080│ │server host │
│ ┌───────────┐ │ ss │ ┌────────────┐ │
│ │ │ │ port:3389 │ │ │ │
│ │shadowsocks┼─┼───────────┼─┼→shadowsocks│ │
│ │ │ │ │ │ │ │
│ └───────────┘ │ │ └────────────┘ │
└───────────────┘ └────────────────┘
We assume you have a shadowsocks client. If NOT, go to shadowsocks and setup a client without gui.
The following should be performed on the client host.
$ docker run --net=host -d -e PROXY_PORT=5678 sean8694/privoxy
A privoxy is running on the host.
$ export http_proxy=http://127.0.0.1:5678
$ export https_proxy=http://127.0.0.1:5678
$ 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>
Test on other hosts, replace 127.0.0.1 with client host ip.
Done.
MAKE SURE the port of server/client is not blocked by firewall.
Content type
Image
Digest
Size
3 MB
Last updated
almost 7 years ago
docker pull sean8694/privoxy