Install a squid proxy on ubuntu in 5 minutes

From your ubuntu machine, even a desktop machine run this command from a terminal window:

  • sudo apt-get install squid

once this is installed, edit the following file and declare your internal network:

  • vi /etc/squid/squid.conf

add these lines

The first line state your network range as a source (my current network is 192.168.1.0 / Netmask 255.255.255.0)

 

Tag: acl

  • acl my_network src 192.168.1.0/24
  • http_access allow my_network

Now, restart the squid deamon running the command:

service squid restart

More info on the squid settings that could be used/applied:http://www.squid-cache.org/

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *