Polipo是一个小型的代理服务器软件, 被设计为一个人或者几个人使用的代理服务器软件,可以作为http代理使用,而且有缓存功能。也可以作为将SOCKS代理转为http代理的工具。默认使用 8123 作为http代理端口。
首页地址:http://www.pps.univ-paris-diderot.fr/~jch/software/polipo/
×××地址:http://www.pps.univ-paris-diderot.fr/~jch/software/files/polipo/
下载最新版tar包:polipo-1.1.0.tar.gz (也有rpm包)
1)安装:
#yum install texinfo -y #编译时依赖软件 #tar -xf polipo-1.1.0.tar.gz #make all #make install mkdir -p /usr/local/bin mkdir -p /usr/share/polipo/www mkdir -p /usr/share/polipo/www/doc rm -f /usr/local/bin/polipo cp -f polipo /usr/local/bin/ .......... #安装输出信息 |
默认配置文件目录 #mkdir /etc/polipo
2)从源码目录拷贝配置文件:#cp config.sample /etc/polipo/config
proxyAddress = "0.0.0.0" # IPv4 only指定监听地址 proxyPort = 8123 #监听端口 allowedClients = 192.168.10.0/24,192.168.20.0/24 #允许使用代理的客户 daemonise = true #放入后台 pidFile = /etc/polipo/pid #进程pid文件 logFile = /etc/polipo/log #日志文件 |
->可根据需要配置选项
->也可以不需要修改,甚至不需要配置文件,默认监听127.0.0.1的8123端口
3)启动与使用
->没有配置文件启动方式
#nohup polipo &
->在配置中加入了放入后台的的启动方式
#polipo
# netstat -tulnp|grep polipo tcp 0 0 0.0.0.0:8123 0.0.0.0:* LISTEN 15338/polipo |
->重启:#killall polipo;sleep 1;polipo
获取帮助 #man polipo
在浏览器中设置本机IP与端口使用代理
4)其他配置:
/etc/polipo/forbidden The default location of the list of forbidden URLs
拒绝代理的url
/var/cache/polipo/ The default location of the on-disk cache
默认磁盘缓存目录
转载于:https://blog.51cto.com/wuwei5460/1407369