使用Privoxy、Polipo、3proxy转化Sock5代理为Http代理

2010年9月7日 | 分类: 代理工具 | 标签: , , , , ,

现在使用ssh翻墙的人越来越多了,ssh加密隧道形成的是一个本地socks5代理,由于dns污染问题的存在有时候使用socks5代理翻墙会受到干扰而http代理就不存在此问题,能不能把socks5代理转化为Http代理呢,Privoxy、Polipo、3proxy他们当中任何一个都能轻松实现。

Privoxy配置如下:

forward-socks5 / 127.0.0.1:2012 .
listen-address  127.0.0.1:1984

Polipo配置如下:

proxyAddress = “127.0.0.1”
proxyPort = 1984
allowedClients = 127.0.0.1
allowedPorts = 1-65535

proxyName = “localhost”
cacheIsShared = false
socksParentProxy = “127.0.0.1:2012”
socksProxyType = socks5

chunkHighMark = 33554432

diskCacheRoot = “”
localDocumentRoot = “”

disableLocalInterface = true
disableConfiguration = true

dnsUseGethostbyname = yes

disableVia = true
censoredHeaders = from,accept-language,x-pad,link
censorReferer = maybe

maxConnectionAge = 5m
maxConnectionRequests = 120
serverMaxSlots = 8
serverSlots = 2
tunnelAllowedPorts = 1-65535

3proxy配置如下:

nscache 65536
timeouts 1 5 30 60 180 1800 15 60
daemon
#service
#external ip
internal 127.0.0.1
auth iponly
allow * 127.0.0.1
parent 1000 socks5+ 127.0.0.1 2012
proxy -n -a -p1984

把以上配置文件中的2012修改为你ssh形成的socks5代理的端口,把1984修改为你想要的http代理的端口。

(因为Polipo最初是设计用于Linux的.直接运行会使用默认配置文件,路径为’~/.polipo’或者’/etc/polipo/config’,但Windows上是一定没有这样的路径的.所以我们必须要用 -c 参数来指定配置文件路径才能正常运行,比如:polipo -c polipo.conf,3proxy中的参数daemon是让其后台运行,可以在任务管理器里直接关闭进程,如果想让其前台运行就注释掉此行,开启service参数将会将3proxy安装为系统服务。)

当然他们都还有其他强大的功能具体就去他们官网看吧!

http://www.privoxy.org/

http://www.pps.jussieu.fr/~jch/software/polipo/

http://www.3proxy.ru/

如果想要一个马上能用的包,请使用我打包的Privoxy、Polipo、3proxy

下载地址 http://sharesend.com/bdzls

目前还没有任何评论.