Installing a light HTTP Proxy Server (TINYPROXY)
Squid is a proxy server for bigger networks (enterprises, etc..) Can be also installed on smaller local networks.
TinyProxy is a light proxy and very fast. It doesn’t do cache as squid, but consume only 2mb of memory really perfect for small local networks.
Link:
https://www.banu.com/tinyproxy/
Installation
sudo apt-get install tinyproxy
Configuration
Edit the file /etc/tinyproxy/tinyproxy.conf:
Gksudo gedit /etc/tinyproxy/tinyproxy.conf
Do not forget, after all the changing of the configuration. You have to restart the proxy:
Sudo /etc/init.d/tinyproxy restart
Port
Add the line:
Port 3128
(so that the proxy will be listening on this port)
Address
For security measures, the proxy will be listening on the IP address of the internal network.
You can specify with this line:
Listen 192.168.0.1
Authorisation
You can authorize specific IP addresses or specific networks to use the proxy by adding allow to the lines. For example to authorize your local network:
Allow 192.168.0.0/24
Logs
The file /var/log/tinyproxy.log contains the details of all proxy access.
It is very verbose and will fill the disk. You can change this:
Replace the line:
LogLevel Info
To
LogLevel Error
so that it does a line in case of error.
Other
There are other options: You just need to explore the tinyproxy.conf file that contains the description of options.