privoxy网络代理
通过windows提供局域网代理,使其他服务器联网。

http://www.privoxy.org/sf-download-mirror/Win32/3.0.8%20%28stable%29/privoxy_setup_3_0_8.exe
安装后修改config.txt的listen地址和端口。

linux设置:
echo "http_proxy=192.168.1.2:1080 " >> /etc/profile
echo "https_proxy=$http_proxy " >> /etc/profile
echo "ftp_proxy=192.168.1.2:1080 " >> /etc/profile
echo "no_proxy=192.168..,*.local,localhost,127.0.0.1" >> /etc/profile
echo "export http_proxy https_proxy ftp_proxy no_proxy" >> /etc/profile
source /etc/profile
curl http://www.baidu.com
ls

http_proxy:http协议使用代理服务器地址;
https_proxy:https协议使用安全代理地址;
ftp_proxy:ftp协议使用代理服务器地址;
user:代理使用的用户名;
password:代理使用用户名的密码;
proxy.abc.com:代理地址,可以是IP,也可以是域名;
8080:使用的端口;
no_proxy:不使用代理的主机或IP。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code