linux 下 privoxy 设置代理

1、安装privoxy:   apt-get install privoxy


2、修改privoxy:配置文件  /etc/privoxy/config   添加如下两句:

forward-socks5   /               127.0.0.1:9050    . //对外链接使用的

listen-address  192.168.0.2:8118    .                        //监听本地应用的端口

然后 service privoxy restart

curl -x localhost:8118 www.baidu.com >1

3、ssh联通代理上网的服务器。

ssh -N -D 9050 admin@remotehost

登录成功后,按 ctrl+z, 然后ctrl+b 让他独立在后台运行


设置成功可以使用代理了。


4、浏览器中使用,直接配置 浏览器http代理服务器 192.168.0.2 端口 8118/

5、curl 中使用: curl -x 192.168.0.2:8118 www.baidu.com >1

6、wget -Y on -e "http_proxy=http://192.168.0.2:8118" "www.baidu.com"


版权声明:本文为north_eagle原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。