Sign inSign up

sean8694/privoxy

By sean8694

Updated almost 7 years ago

privoxy convert socks5 to http proxy.

Image
7

10K+

sean8694/privoxy repository overview

Quick Start

Shadowsocks 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│ │
            │ │           │ │           │ │            │ │
            │ └───────────┘ │           │ └────────────┘ │
            └───────────────┘           └────────────────┘

Client Side

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.

Test

$ 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&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>

Test on other hosts, replace 127.0.0.1 with client host ip.

Done.

PS

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

Tag summary

Content type

Image

Digest

Size

3 MB

Last updated

almost 7 years ago

docker pull sean8694/privoxy