chris_h
23.06.09, 14:24
Hi,
habe debian 5.0 mit squid3 installiert.
Teste ich mit:
squidclient http://google.com
wird die Seite beim zweiten Mal ordnungsgemäß aus dem Cache gelanden. Öffne ich den IE von einer anderen Machine, gibt es immer TPC_MISS!?
Mit squidclient:
1245763000.548 78 127.0.0.1 TCP_MEM_HIT/301 623 GET http://google.com - NONE/- text/html
1245763003.718 0 127.0.0.1 TCP_MEM_HIT/301 623 GET http://google.com - NONE/- text/html
Mit IE:
1245763216.615 80 172.31.3.168 TCP_MISS/302 562 GET http://www.google.com/ - DIRECT/74.125.77.104 text/html
1245763216.720 96 172.31.3.168 TCP_MISS/200 3616 GET http://www.google.de/ - DIRECT/74.125.77.147 text/html
1245763216.920 45 172.31.3.168 TCP_MISS/204 357 GET http://www.google.de/csi? - DIRECT/74.125.77.147 text/html
1245763217.028 79 172.31.3.168 TCP_MISS/204 266 GET http://clients1.google.de/generate_204 - DIRECT/74.125.77.138 text/html
1245763221.820 62 172.31.3.168 TCP_MISS/200 3617 GET http://www.google.de/ - DIRECT/74.125.77.147 text/html
1245763221.888 42 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/intl/de_de/images/logo.gif - DIRECT/74.125.77.147 -
1245763221.952 45 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/images/nav_logo4.png - DIRECT/74.125.77.147 -
1245763221.956 83 172.31.3.168 TCP_MISS/304 261 GET http://www.google.de/extern_js/f/CgJkZRICZGUrMAo4GywrMA44BSwrMBY4DCwrMBc4AywrMBg4BC wrMCU4yYgBLCswJjgELCswJzgALA/vkQQ1uON6NQ.js - DIRECT/74.125.77.103 text/html
1245763221.987 0 172.31.3.168 TCP_NEGATIVE_HIT/204 273 GET http://clients1.google.de/generate_204 - NONE/- text/html
1245763222.028 43 172.31.3.168 TCP_MISS/204 357 GET http://www.google.de/csi? - DIRECT/74.125.77.103 text/html
1245763227.681 59 172.31.3.168 TCP_MISS/200 3617 GET http://www.google.de/ - DIRECT/74.125.77.103 text/html
1245763227.744 42 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/intl/de_de/images/logo.gif - DIRECT/74.125.77.103 -
1245763227.772 43 172.31.3.168 TCP_MISS/304 261 GET http://www.google.de/extern_js/f/CgJkZRICZGUrMAo4GywrMA44BSwrMBY4DCwrMBc4AywrMBg4BC wrMCU4yYgBLCswJjgELCswJzgALA/vkQQ1uON6NQ.js - DIRECT/74.125.77.147 text/html
1245763227.799 0 172.31.3.168 TCP_NEGATIVE_HIT/204 274 GET http://clients1.google.de/generate_204 - NONE/- text/html
1245763227.804 40 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/images/nav_logo4.png - DIRECT/74.125.77.103 -
1245763227.844 45 172.31.3.168 TCP_MISS/204 357 GET http://www.google.de/csi? - DIRECT/74.125.77.147 text/html
Hier meine Konfig:
grep -v ^# squid.conf | grep -v ^$
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 172.31.0.0/16
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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
http_access allow localnet
http_access allow localhost
http_access deny all
icp_access deny all
htcp_access deny all
http_port 3128
hierarchy_stoplist cgi-bin ?
cache_dir ufs /var/spool/squid3 500 16 256
access_log /var/log/squid3/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
icp_port 3130
coredump_dir /var/spool/squid3
Woran kann das liegen?
Danke,
Chris
habe debian 5.0 mit squid3 installiert.
Teste ich mit:
squidclient http://google.com
wird die Seite beim zweiten Mal ordnungsgemäß aus dem Cache gelanden. Öffne ich den IE von einer anderen Machine, gibt es immer TPC_MISS!?
Mit squidclient:
1245763000.548 78 127.0.0.1 TCP_MEM_HIT/301 623 GET http://google.com - NONE/- text/html
1245763003.718 0 127.0.0.1 TCP_MEM_HIT/301 623 GET http://google.com - NONE/- text/html
Mit IE:
1245763216.615 80 172.31.3.168 TCP_MISS/302 562 GET http://www.google.com/ - DIRECT/74.125.77.104 text/html
1245763216.720 96 172.31.3.168 TCP_MISS/200 3616 GET http://www.google.de/ - DIRECT/74.125.77.147 text/html
1245763216.920 45 172.31.3.168 TCP_MISS/204 357 GET http://www.google.de/csi? - DIRECT/74.125.77.147 text/html
1245763217.028 79 172.31.3.168 TCP_MISS/204 266 GET http://clients1.google.de/generate_204 - DIRECT/74.125.77.138 text/html
1245763221.820 62 172.31.3.168 TCP_MISS/200 3617 GET http://www.google.de/ - DIRECT/74.125.77.147 text/html
1245763221.888 42 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/intl/de_de/images/logo.gif - DIRECT/74.125.77.147 -
1245763221.952 45 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/images/nav_logo4.png - DIRECT/74.125.77.147 -
1245763221.956 83 172.31.3.168 TCP_MISS/304 261 GET http://www.google.de/extern_js/f/CgJkZRICZGUrMAo4GywrMA44BSwrMBY4DCwrMBc4AywrMBg4BC wrMCU4yYgBLCswJjgELCswJzgALA/vkQQ1uON6NQ.js - DIRECT/74.125.77.103 text/html
1245763221.987 0 172.31.3.168 TCP_NEGATIVE_HIT/204 273 GET http://clients1.google.de/generate_204 - NONE/- text/html
1245763222.028 43 172.31.3.168 TCP_MISS/204 357 GET http://www.google.de/csi? - DIRECT/74.125.77.103 text/html
1245763227.681 59 172.31.3.168 TCP_MISS/200 3617 GET http://www.google.de/ - DIRECT/74.125.77.103 text/html
1245763227.744 42 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/intl/de_de/images/logo.gif - DIRECT/74.125.77.103 -
1245763227.772 43 172.31.3.168 TCP_MISS/304 261 GET http://www.google.de/extern_js/f/CgJkZRICZGUrMAo4GywrMA44BSwrMBY4DCwrMBc4AywrMBg4BC wrMCU4yYgBLCswJjgELCswJzgALA/vkQQ1uON6NQ.js - DIRECT/74.125.77.147 text/html
1245763227.799 0 172.31.3.168 TCP_NEGATIVE_HIT/204 274 GET http://clients1.google.de/generate_204 - NONE/- text/html
1245763227.804 40 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/images/nav_logo4.png - DIRECT/74.125.77.103 -
1245763227.844 45 172.31.3.168 TCP_MISS/204 357 GET http://www.google.de/csi? - DIRECT/74.125.77.147 text/html
Hier meine Konfig:
grep -v ^# squid.conf | grep -v ^$
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 172.31.0.0/16
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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
http_access allow localnet
http_access allow localhost
http_access deny all
icp_access deny all
htcp_access deny all
http_port 3128
hierarchy_stoplist cgi-bin ?
cache_dir ufs /var/spool/squid3 500 16 256
access_log /var/log/squid3/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
icp_port 3130
coredump_dir /var/spool/squid3
Woran kann das liegen?
Danke,
Chris