ubuntu12.04--change socks5 to http by proxy

来源:互联网 发布:福州几个打车软件 编辑:程序博客网 时间:2024/06/18 00:56
1. 
sudo apt-get install privoxy

2.
sudo vi /etc/privoxy/config
modify two places as fellows:
listen-address localhost:8111
forward-socks5 / 10.7.211.16:1080 .
Note:the dot at the last should be reserved, do not remove it.

3.
sudo /etc/init.d/privoxy start
或者sudo /etc/init.d/privoxy restart
如果失败,可以从/var/log/privoxy/logfile查看原因,如果permission deny,则需修改步骤2中的监听端口

4.
telnet 127.0.0.1 8111
connected to 127.0.0.1

5.
修改System Settings 里面的Network,将HTTP_PROXY, HTTPS_PROXY, FTP_PROXY修改为127.0.0.1, 端口号为8111

6.
修改.bashrc文件中的
export http_proxy=http://127.0.0.1:8111
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
export https_proxy=$http_proxy

7.
修改.subversion目录下的servers文件
[global]
http-proxy-exceptions = *.**.com;127.0.0.1;10.*.*.*;localhost
http-proxy-host = 127.0.0.1
http-proxy-port = 8111
0 0
原创粉丝点击