LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-07-2004, 09:33 AM   #1
dravya
LQ Newbie
 
Registered: May 2004
Posts: 23

Rep: Reputation: 15
Question Squid: Getting TCP_MISS and no TCP_HIT :(


HIi folks,

I am running squid on a RH9 machine. The problem is that when I see the access.log file. I see only TCP_MISS and TCP_REFRESH_HIT. Even if I go to a site and then come back to it, it does not retrieve it from the cache. Though it logs every HTTP request. The proxy is not transparent yet. I have edited the proxy settings in the browser to port 3128. I am able to go through squid from any machine on the network. The following are the options that I have changed in squid.conf.

http_port 3128
cache_mem 1024 KB
maximum_object_size 1024 KB
fqdncache_size 10000 // I want to save 10,000 entries of dns
cache_dir ufs /usr/local/squid/var/cache 100 16 256

#Recommended minimum configuration:
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 allowed_hosts src 192.168.1.97/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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
http_access deny manager
http_access allow allowed_hosts
http_access allow all
http_access allow localhost
http_access deny all

cache_effective_user nobody
cache_effective_group nobody

Any suggestions/concerns/ideas would be greatly appreciated.

Thanx guys

Dravya
 
Old 06-07-2004, 10:20 AM   #2
dravya
LQ Newbie
 
Registered: May 2004
Posts: 23

Original Poster
Rep: Reputation: 15
correction

sorry my "cache_mem" is set to 8MB and not 1024KB

any suggestions?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SQUID only TCP_MISS and DIRECT - why? keex Linux - Networking 3 09-18-2010 06:20 PM
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
squid message customization, hiding squid versioin rajnishmishra Linux - Networking 0 11-27-2004 03:55 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM
Squid Cache Tcp_miss RickyJaff Linux - Networking 2 02-24-2004 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration