• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] Squid extrem langsam

Hallo!

Mein Squid hat glaub ich Probleme bei der Namesauflösung. Das Öffnen von Internetseiten geht extrem langsam. Wenn ich ohne Proxy surfe geht alles wunderbar.

Ein nslookup am Server direkt funktioniert schnell und einwandfrei.

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
dns_nameservers $195.3.96.67

Was kann da falsch sein??
 

nobbiew

Hacker
warum verwendest du dns_nameservers? Hat das eine besondere bewandnis. Standardmäßig nimmt Squid den DNS-Server aus der /etc/resolv.conf.

In deiner derzeitigen Konfigruation kann es vorkommen dass bei einem nslookup ein andere DNS-Server verwendet wird als vom squid.

Ach ja und nochwas. Es gibt keinen DNS-Server namens $
 
Oben