Squid is used by hundreds of Internet Providers world-wide to provide their users with the best possible web access. Squid optimises the data flow between client and server to improve performance and caches frequently-used content to save bandwidth.

Squid can also route content requests to servers in a wide variety of ways to build cache server hierarchies which optimise network throughput.

Step 1. Install  Squid

apt-get install squid

Step 2. Allow your network to use the proxy server.

Append lines similar to these to your config.

echo acl myip src 192.168.4.1/24 >> /etc/squid/squid.conf
echo http_access allow myip >> /etc/squid/squid.conf

NOTE: Replace 192.168.4.1/24 with the network that should be able to use proxy.

Replace myip with your optional name for the network.

Optional: You can choose  to don’t forward client ip information.

forwarded_for off

Step 3. Restart squid server.

/etc/init.d/squid restart

Step 4. Now u can configure your web browser or application your would like to use the proxy server to connect to  serverip at port 3128.

Done