How To Install and Config Polipo Caching Web Proxy On Linux?

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM

Polipo was the best HTTP proxy when it emerged. Since then web behavior has a lot changed and HTTPS became popular. HTTPS prevents intermediates to read traffic and cache them. Polipo is not maintained currently but useful for different cases.

Install For Ubuntu, Debian, Mint, Kali

We can install polipo for Ubuntu, Debian, Mint, Kali with the apt-get command like below.

Install For Ubuntu, Debian, Mint, Kali
Install For Ubuntu, Debian, Mint, Kali

Install For Ubuntu, Debian, Mint, Kali

We can also install polipo web cache proxy with the yum command like below.

Configuration File

Polipo configuration file is stored in the /etc/polipo/polipo . We will use this configuration file in order to change the configuration. We can set configuration like Proxy Address, Allowed Clients, Log etc.

Configuration File
Configuration File

List Configuration Options

There are a lot of configuration options supported by the polipo. We can list the options with the -v option to the polipo command like below. Interestingly this option requires root privileges which is provided by sudo in the following example.

List Configuration Options
List Configuration Options

Set Proxy Address

By default, the proxy will listen for local proxy connections. We can enable polipo to listen given IP address for network-wide proxy connection. We will use proxyAddress configuration and provide a network interface IP address for this into /etc/polipo/polipo configuration file. Polipo will listen port TCP 8123 by default.

Set Allowed Clients

We can allow or deny the client those can connect to our polipo proxy. We will use allowedClients option. We can provide the network address in a CIDR format or client range with a dash.

LEARN MORE  How To Update Mozilla Firefox?

OR we can use asterisk * to specify the whole network address range

We can also use asterisk for network number part like below.

Display Polipo Service Status

We can use systemctl command to list polipo service status like below.

Display Polipo Service Status
Display Polipo Service Status

Restart Service to Reload Configuration

After making some configuration change in the /etc/polipo/polipo we need to restart the polipo proxy service to make these changes effect. We will use systemctl command like below which will restart polipo and reload the configuration.

Example Client Config For Apt Command

There are a lot of applications which can use proxy to connect internet. Apt command can be used with a proxy configuration. We can configuration Apt with the following line to connect a proxy like polipo.

Example Client Config For Firefox

We can also configure Firefox browser in order to use polipo proxy server where port number is TCP 8123.  Open following configuration Edit->Preferences->Connection Settings->Maual Proxy Configuration

Firefox Proxy Configuration
Firefox Proxy Configuration

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM