Squid cached nix

Pagina: 1
Acties:

  • Zynth
  • Registratie: September 2001
  • Laatst online: 29-07 15:30
Ik heb slack 8.0, en squid draait.
maar het probleem is dat hij helemaal niets cached!
tja, dat schiet niet op natuurlijk ;)
ik heb squid geconfigureerd, de cache-directories laten aanmaken, etc...

hier is voor de zekerheid een stukje uit de logfile:

--------
2001/09/17 01:53:15| Store logging disabled
2001/09/17 01:53:15| Rebuilding storage in /var/squid/cache (CLEAN)
2001/09/17 01:53:15| Using Least Load store dir selection
2001/09/17 01:53:15| Set Current Directory to /var/squid/cache
2001/09/17 01:53:15| Loaded Icons.
2001/09/17 01:53:15| Accepting HTTP connections at 0.0.0.0, port 8080, FD 8.
2001/09/17 01:53:15| Accepting ICP messages at 0.0.0.0, port 3130, FD 10.
2001/09/17 01:53:15| WCCP Disabled.
2001/09/17 01:53:15| Ready to serve requests.
2001/09/17 01:53:16| Done scanning /var/squid/cache swaplog (0 entries)
2001/09/17 01:53:16| Finished rebuilding storage from disk.
2001/09/17 01:53:16| 0 Entries scanned
2001/09/17 01:53:16| 0 Invalid entries.
2001/09/17 01:53:16| 0 With invalid flags.
2001/09/17 01:53:16| 0 Objects loaded.
2001/09/17 01:53:16| 0 Objects expired.
2001/09/17 01:53:16| 0 Objects cancelled.
2001/09/17 01:53:16| 0 Duplicate URLs purged.
2001/09/17 01:53:16| 0 Swapfile clashes avoided.
2001/09/17 01:53:16| Took 0.9 seconds ( 0.0 objects/sec).
2001/09/17 01:53:16| Beginning Validation Procedure
2001/09/17 01:53:16| Completed Validation Procedure
2001/09/17 01:53:16| Validated 0 Entries
2001/09/17 01:53:16| store_swap_size = 84k
2001/09/17 01:53:16| storeLateRelease: released 0 objects
2001/09/17 02:57:22| Preparing for shutdown after 114 requests
2001/09/17 02:57:22| Waiting 30 seconds for active connections to finish
2001/09/17 02:57:22| FD 8 Closing HTTP connection
2001/09/17 02:57:23| Shutting down...
-------

heeft iemand een idee, of hebben jullie meer info nodig?
(squid.conf ofzow)

thnx!

  • luc
  • Registratie: Maart 2000
  • Niet online

luc

Als je nou ff je configfile samenvat en hier post.. daar zullen we meer mee kunnen..
Check ff of always_direct ofzow niet aanstaat.

  • Zynth
  • Registratie: September 2001
  • Laatst online: 29-07 15:30
Dit is mijn squid.conf file, zonder commentaar:

---------
http_port 8080
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 20 MB
maximum_object_size 32768 KB
cache_dir ufs /var/squid/cache 384 16 256
cache_store_log none
reference_age 3 months
positive_dns_ttl 10 minutes
connect_timeout 1 minutes
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 starburst src 192.168.0.127/255.255.255.255
acl enterprise src 192.168.0.1/255.255.255.255
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
acl starburst src 192.168.0.127
acl localhost src 127.0.0.1
acl enterprise src 192.168.0.1
http_access allow localhost
http_access allow starburst
http_access allow enterprise
http_access allow all
icp_access allow all
visible_hostname transmeta.dyndns.org
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
cachemgr_passwd [d8 het niet he! tweakers! :)] all
-------

Squid draait op mijn server, die het internet verzorgt voor het netwerk thuis.
Squid werkt samen met IPTables:

IPTABLES="/usr/sbin/iptables -v"
TCP_IN="23,22,999,998"

$IPTABLES -F INPUT
$IPTABLES -F OUTPUT
$IPTABLES -F FORWARD

$IPTABLES -P INPUT ACCEPT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -t nat -P PREROUTING ACCEPT
$IPTABLES -t nat -P POSTROUTING ACCEPT
$IPTABLES -t nat -P OUTPUT ACCEPT

$IPTABLES -A INPUT -i ppp0 -p tcp -m multiport --destination-port $TCP_IN --syn -j ACCEPT
$IPTABLES -A INPUT -i ppp0 -p tcp --syn -j DROP
$IPTABLES -t nat -A POSTROUTING -j MASQUERADE
$IPTABLES -t nat -A PREROUTING -i eth0 -p tcp --destination-port 80 -j DNAT --to-destination 192.168.0.1:8080

------------

IPTables pleurt geloof ik het de internetaanvragen van het netwerk door naar zichzelf, maar dan naar poort 8080, waar squid luisterd.
Squid handeld dan (d8 ik) het écht internetverkeer af.


thnx!

  • Jelmer
  • Registratie: Maart 2000
  • Laatst online: 07:25
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

gooi dat er eens uit

  • Zynth
  • Registratie: September 2001
  • Laatst online: 29-07 15:30
thnx voor de hulp,
maar ik heb hem al aan de gang.
nouja, de cache-directory groeit in ieder geval ;)

ik heb dit ook al eens gevraagd in dit forum,
maar misschien dat iemand dit weet:

met cachemgr.cgi kan je statistieken van de squid-server bekijken, zoals het aantal hits, etc.
Maar zijn die statistieken ook gewoon te vinden in squid?
in een speciaal file'tje ofzow?

thnx!