Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have been trying to install Squid version 3.1.20 on Ubuntu version 12.10 by entering sudo apt-get install squid, but the problem is the squid I installed it is not caching. I tried to browse to the same websites many times it keep showing me TCP_MISS all the times. As I understand it should show TCP_HIT. The configuration is very simple. I just added the below statements into the squid configuration file.

acl allow_network src 172.16.0.0/16  

http_access allow allow_network

Please help me to fix the problem.

share|improve this question
add comment

1 Answer 1

First off, Squid 3 is installed by:

sudo apt-get install squid3

Then, you have to add your acl, which you have done, good.

Then you need to create your cache_dirs by running:

sudo squid3 -z

Then you need to start the service:

sudo service squid3 start

After that, you might need to tweek your config a bitty, look at: allow_cache and always_direct, you really don't want the latter! Have a read of this: http://wiki.squid-cache.org/SquidFaq/ConfiguringSquid#Can_I_make_Squid_proxy_only.2C_without_caching_anything.3F for what NOT to do. I tend to use cache allow all

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.