Solved

squid caching

Posted on 2008-10-31
8
643 Views
Last Modified: 2012-05-05
hi , i want squid to work as a cache server ,
wan ip: 192.186.0.1
lan ip: 192.186.10.1

my version is 2.6

here are my setting please correct me.

http_port 3128
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
visible_hostname star
acl our_networks src 192.186.10.0/24
http_access allow all
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid
0
Comment
Question by:adaheem
  • 2
  • 2
8 Comments
 
LVL 14

Expert Comment

by:cjl7
ID: 22851201
So what is your problem with the setup?

Something not working as expected?
0
 

Author Comment

by:adaheem
ID: 22851250
i want it to deliver from cache and its not doing the job
0
 
LVL 27

Expert Comment

by:Nopius
ID: 22920469
> i want it to deliver from cache and its not doing the job

How did you find that? Please provide log file entries.

If you have at least one log entry in /var/log/squid/access.log
with TCP_HIT or TCP_MEM_HIT, your cache _is_ working.
0
 

Author Comment

by:adaheem
ID: 22922785
with these settings , is it working as an accelerator mode?

i heard that there is a gui for squid , can anyone tell me what is it??
0
 
LVL 27

Accepted Solution

by:
Nopius earned 500 total points
ID: 22956105
Hello, adaheem.

You didn't answer do you have TCP_HIT entries...

With these settings it is working as a caching proxy, not accelerating server.
The difference is in that, that accelerating server accelerates and caches only specific host while caching proxy - any external websites, that you allow.

squid.conf comments are very good, so you may configure it from config fix.

If you have some specific problems (i.e. it doesnt' cache big files, that is default), we can help you.
Here is a homepage of squid server: http://www.squid-cache.org/
there are many howtos and squid related software (such as "webmin", "proxymin"). I never used such GUI, but recommend you to start with 'webmin' although it is a monster.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now