modified on 23 September 2009 at 08:01 ••• 20,727 views


From Maties Ubuntu

Jump to: navigation, search



Internet bandwidth is expensive in Africa - no wonder. Anything that can help save bandwidth and therefore money is welcome. How does a personal internet proxy do this ? Most web sites are composed of static and variable elements. Every time you visit the same site you are downloading the same static content and paying for it over and over again. How about we download the static content once and then only download what changes. This is what a personal internet proxy server can do for you.

Ubuntu comes preloaded with the perfect software in the repositories - namely SQUID. Ok, so this is great for home use, lets do it.

Note: since SQUID has no way to configure forwarding to PAC files, you will not be able to use it in conjunction with a PAC proxy file (for example, if you are using the university's PAC file, or are using another PAC file for migrating your laptop between home and campus).


Step 1 - Install SQUID

In a terminal type.

sudo aptitude install squid

Step 2 - Configure client proxy settings

SQUID is normally setup as a "transparent proxy" but for "transparent proxy" to work the proxy must also act as the default gateway for the PCs. This is not the case with your personal computer therefore you have to manually set proxy settings for each client that wants to connect to the internet.

Setup your proxy configuration for each client with the following settings.

host = localhost
port = 3128

Check your internet browsers and desktop documentation to find out how-to setup the proxy configuration. There are too many clients out there for me to document.


To check if it's working, type the following to view the SQUID3 access log while browsing a few internet websites.

sudo tail -f /var/log/squid/access.log

You should see stuff scrolling by as you browse the internet.

That's it.

As usual do not hesitate to ask for help if you have a problem.

Further Help Links