How to install and configure squid proxy server

Valic —  June 10, 2010 — 5 Comments

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 >> /etc/squid/squid.conf
echo http_access allow myip >> /etc/squid/squid.conf

NOTE: Replace 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.



Posts Twitter Facebook

Editor in Chief at Debian-Tutorials, Linux enthusiast.

5 responses to How to install and configure squid proxy server

  1. thanks for the info,

    you have a typo on step 2 thogh
    echo acl myip src >> /etc/squid/squid.conf

  2. Thanks.

  3. luw debian

  4. hi;
    i have a dynamic ip adress . how to do the 2nd step (Step 2. Allow your network to use the proxy server).


  5. Create an account on dyndns or freedns site and add in the config the dns from there.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.