Market Logic

Setting up a caching proxy server in Ubuntu

Posted in computers, linux by mktlogic on November 25, 2008

Just a quick summary from a more detailed source

  1. Get squid and squid prefetch: sudo apt-get install squid-prefetch
  2. Edit the configuration file: sudo vi /etc/squid/squid.conf so that the line with the term visible hostname reads visible hostname localhost
  3. Tell squid where to listen by changing the line that reads http_port a.b.c.d:3128 to have the ip address of the intended listening interface.
  4. After the set of lines beginning with acl add acl squidusers src 192.168.1.0/255.255.255.0 or whatever network the proxy should serve.
  5. Find the set of lines that begin with http_access allow and add one more to read http_access allow squidusers and still another line to read http_access deny all
  6. Comment out the line that reads http_access deny! Safe_port
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: