Installing an easy HTTP proxy-cache (polipo)

Last update on November 8, 2009 09:17 AM by jak58
Published by jak58

Installing an easy HTTP proxy-cache (polipo)





Intro


Installing an HTTP proxy cache on your computer can bring several advantages:
It allows sharing of the Internet connection.
The cache will display pages faster, even if you do not share your connection.
It allows to optional filtering utility.

Polipo is an efficient and lightweight HTTP proxy cache.

Quick Installation


sudo apt-get install polipo


Then just configure the software (web browser ...etc) to use localhost:8123 as proxy.

Note that polipo is accessible only from your machine , thus reducing security constraints, however there is more room for modifications or any alternative configurations.

Among the options are:
Setting the memory and disk cache
Automatic filtering of HTTP headers such as user-agent, http-referer.
URL filter.

Allowing hosts on the LAN to connect


If your LAN is 192.168.0.0/24 and your proxy server 192.168.0.1, edit the following file /etc/polipo/config and add the lines:
proxyAddress = "192.168.0.1"
allowedClients = 127.0.0.1, 192.168.0.0/24


Then type sudo /etc/init.d/polipo restart to take into account the new configuration.

Changing the port


To change the port on which Polipo listen, add the following proxyPort parameter to: /etc/polipo/config
proxyPort = 3128
Remember to sudo /etc/init.d/polipo restart to apply changes

Use a proxy server parent


If you want Polipo sends its own requests to another proxy, add the following parameter:
parentProxy = "squid.example.org: 3128"

Using an alternative DNS server


For enhanced performance, Polipo makes its own DNS resolutions without the use of the operating system.
It uses the DNS registered directly in /etc/resolv.conf.

But you can request that Polipo use other DNS servers (e.g. to use OpenDNS). Simply add the following parameter:
dnsNameServer = 208.67.222.222, 208.67.220.220

Disabling IPv6


If you are not using IPv6, add this parameter:

dnsQueryIPv6 = no

More info


The main problem with polipo is its tendency to retain pages to much and this can cause problems for sites where you'll have to login (Kioskea.net)

Learn more: Installing an HTTP proxy server (Squid)
Best answers for « Installing an easy HTTP proxy cache (polipo) » in :
[Ubuntu]Installing an HTTP proxy server (Squid) Show Installing an HTTP proxy server (Squid) 1.Installing the proxy 2.Configuring the proxy 2.1.Naming the proxy 2.2 Choosing the Port 2.3.Choosing the interface 2.4. Setting access rights and priorities 2.5. Authorizing access to group 2.6....
Installing a light HTTP Proxy Server (TINYPROXY) Show Installing a light HTTP Proxy Server (TINYPROXY) Installation Configuration Port Address Authorisation Logs Other Squid is a proxy server for bigger networks (enterprises, etc..) Can be also installed on smaller local...
Proxy and reverse proxy servers Show Proxy servers A proxy server is a machine which acts as an intermediary between the computers of a local area network (sometimes using protocols other than TCP/IP) and the Internet Most of the time the proxy server is used for the web, and when it...
Optimizing Firefox completely ShowOptimizing Firefox completely Intro Increase the speed of loading pages Optimize memory usage Intro Type about:config in the address bar of Firefox, then read and confirm the warning. - To obtain a value, type the name or part...
Installing Windows XP from a USB key ShowInstalling Windows XP from a USB key Creating your bootable USB key: Installing XP Here’s how to create a Windows XP, bootable, USB key. This is very useful especially persons using Netbook or in the case that your PC is not equipped...
Install flashplayer under Debian ShowInstall flashplayer under Debian To install the plugin flashplayer on a Debian, add the repository : deb http://www.backports.org/debian etch main contrib-backports in your sources.list. To perform this, open a console and log in as...
Download Windows Installer ShowMicrosoft WindowsIinstaller is a service of installation and application configuration, allowing to manage the applications containing the MSI extension MSI. Windows Installer 3.1 is a secondary update of Windows Installer 3.0 published in...
Download CleanUp ShowCleanUp! deletes traces of you Internet activity that get stored on your hard disk. These things include: Browser cache Browser History Cookies Bookmarks and Favorites. Deletion of these is optional and...
Installing a network adapter ShowPurpose The purpose of this article is to set up a network to enable data exchanges between computers, resource sharing and network games. Is it therefore necessary to install a network card in each computer that may be part of the local area...
The HTTP protocol ShowIntroduction to the HTTP protocol Since 1990 HTTP protocol (HyperText Transfer Protocol) has been the most widely used protocol on the Internet. Version 0.9 was only intended to transfer data over the Internet (in particular Web pages written in...
Operating Systems - Installing MS-DOS ShowInstalling MS-DOS When installing MS-DOS, make sure that in the BIOS the the boot disk is set to A: first, then the hard drive (boot sequence: A:, C:) Then insert disk 1 in the A: drive, power up the computer, then follow the on-screen...