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
默認磁盤緩存目錄