PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : mit Squid extrem langsamer Seitenaufbau



harry300873
31.10.05, 09:56
Hallo!

Sobald ich meine PCs über den Squid ins Internet lasse, idauert es extrem lange bis die Seiten aufgebaut werden. Gehe ich direkt ins Netz sind die Seiten sofort da. Woran kann dieser Zeitverzug liegen? Die Namenauflösung ist einwandfrei - ich habe das Probel auch wenn ich direkt auf die IP-Adr surfe und nicht über Namen..

Bitte um Hilfe
danke
Harry

bla!zilla
31.10.05, 09:58
Vielleicht ist dein Squid zu langsam. :) Proxies haben nicht immer Vorteile. Sofern die Leitung zum Internet schneller ist, als der Proxy aus dem lokalen Cache liefert, bremst ein Proxy. Ich fürchte aber trotzdem das du ein Problem mit der Namensauflösung hast, allerdings auf Seite des Proxies. Poste bitte mal deine squid.conf, aber ohne Kommentare. :)

harry300873
31.10.05, 10:45
Hi!
Glaub nicht dass ich ein Performanceproblem habe - zum Proxy 4MBit-Standleitung - vom Proxy 2Mbit-Standleitung ins I-Net...

Anbei die squid.conf:

http_port 8080
udp_incoming_address 0.0.0.0
cache_peer 127.0.0.1 parent 8081 7 no-query
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_swap_low 80
cache_swap_high 83
maximum_object_size 4096 KB
cache_dir ufs /var/cache/squid 100 16 256
cache_store_log none
emulate_httpd_log on
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
# ACCESS CONTROLS
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 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 wien_II_ip src "/etc/squid/wwwaccess.wien_II.src"
acl mattighofen_ip src "/etc/squid/wwwaccess.mattighofen.src"
acl wien_ip src "/etc/squid/wwwaccess.wien.src"
acl gerasdorf_ip src "/etc/squid/wwwaccess.gerasdorf.src"
acl wildon_ip src "/etc/squid/wwwaccess.wildon.src"
acl salzburg_ip src "/etc/squid/wwwaccess.salzburg.src"
acl 06to19_only time M T W H F 6:00-19:00
acl not_allowed_dst url_regex "/etc/squid/www.denyall.dst"
acl all_allowed_dst url_regex "/etc/squid/www.allowall.dst"
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all_allowed_dst
http_access deny not_allowed_dst
http_access allow wien_II_ip
http_access allow mattighofen_ip 06to19_only
http_access allow wien_ip 06to19_only
http_access allow gerasdorf_ip 06to19_only
http_access allow wildon_ip 06to19_only
http_access allow salzburg_ip 06to19_only
http_access deny all
http_reply_access allow all
icp_access allow all
miss_access allow all
logfile_rotate 4
always_direct allow SSL_ports
never_direct allow all
coredump_dir /var/cache/squid

bla!zilla
31.10.05, 10:56
Füge doch bitte mal den Eintrag

dns_nameservers $EinDNSdeinerWahl

ein. Danach Squid neu starten.

harry300873
31.10.05, 13:08
danke des wars

verstehen tu ich es zwar nicht (am Linux habe ich eigentlich keine Probleme mit Namensauflösung) - aber funktionieren tut es

Harry :)

bla!zilla
31.10.05, 13:31
Linux hat mit der Namensauflösung keine Probleme, aber dein Squid. :) Deswegen gibst du im die Nameserver mit auf den Weg. Im einfachsten Fall setzt du einen lokalen Nameserver auf und lässt Squid dann einfach auf 127.0.0.1 nach DNS fragen.