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包)tcp
1)安装:ide
#yum install texinfo -y #编译时依赖软件工具 #tar -xf polipo-1.1.0.tar.gz url #make allspa #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
默认磁盘缓存目录