• 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 will nicht starten! Kann keine Hilfe finden

CowClaw

Member
Hi Leute ich hab ein Problem mit Squid!

Wenn ich in der Konsole squid start eingebe kommt folgende Fehlermeldung:

linux:/usr/sbin # squid start
FATAL: ERROR: Unknown policy lru

Squid Cache (Version 3.0-PRE3): Terminated abnormally.
CPU Usage: 0.008 seconds = 0.005 user + 0.003 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Abgebrochen
linux:/usr/sbin # squid start
2005/05/11 22:42:42| aclParseIpData: WARNING: Netmask masks away part of the specified IP in '192.168.10.1/255.255.255.0'
FATAL: ERROR: Unknown policy lru

Squid Cache (Version 3.0-PRE3): Terminated abnormally.
CPU Usage: 0.009 seconds = 0.005 user + 0.004 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Abgebrochen

Ich hoffe ihr könnt mir helfen, bin noch n relativer Newbie
Wenn ihr wollt könnt ihr mir auch unter jabber oder icq helfen
jabberID stylewalker@jabber.blubber.de

Danke im Voraus -- CowClaw
 

oc2pus

Ultimate Guru
schau in deiner squid.conf nach:

dort steht wahrscheinlich
cache_replacement_policy heap lru
ersetze das durch:
cache_replacement_policy heap GDSF
 
OP
C

CowClaw

Member
Das wars leider nicht der selbe fehler kommt immernoch.
Trotzdem vielen dank das du versucht hast mir zu helfen!!
 
OP
C

CowClaw

Member
Erstmal erzähl ich was ich vorhab.
Ich will nen Win rechner und nen Linux rechner vernetzten,
der win rechner soll über den Linux rechner ins inet kommen.
Die Ip für den Linux Rechner ist 192.168.10.1
Die Ip für den Windoof Rechner ist 192.168.10.2
Die Subnetmaske is bei beiden 255.255.255.0

Ich kann vom Win rechner aus den Linux Rechner pingen,
und auch umgekehrt.
(was ja schonmal nit die schlechteste voraussetzung is)

Evntl könnt ihr mir sagen was ich alles änden muss ?!

Code:
linux:/etc/squid # cat squid.conf | grep -v "^#" | grep -v ^$
http_port 3128
icp_port 3130
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localnet src 192.168.10.1/255.255.255.0
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 allow manager localnet
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_reply_access allow all
icp_access allow all
coredump_dir /var/cache/squid
 

oc2pus

Ultimate Guru
in die 26. Zeile schreibst du:
ICH SOLL KONFIGDATEIEN OHNE KOMMENTARE POSTEN :)

in die 348. Zeile schreibst du:
ICH SOLL DIE DEUTSCHE DOKU DIE HIER IM FORUM EMPFOHLEN WURDE LESEN

in die 654. Zeile schreibst du:
ICH LESE MICH ERST GRÜNDLICH IN EIN THEMA EIN UND STELLE PRÄZISE FRAGEN

danach surfst du zu www.linuxbu.ch und liest das Kapitel 13 genau durch.

Dateien ohne Kommentare gibt man mit:
cat squid.conf | grep -v "^#" | grep -v ^$ aus :)
 

oc2pus

Ultimate Guru
JayKay schrieb:
Vielleicht postest du einfach mal deine squid.conf...

sowas wie oben kommt dann dabei raus ... und das liest ehrlich NIEMAND ;)

das gleiche Thema haben wir auch im mail-Forum ...
==> EIN WICHTIG-Posting: Nein wir wollen keine Config-Files mit Kommentaren haben wäre auch hier mal angebracht.
 
OP
C

CowClaw

Member
Sorry Leute !

Aber danke trotzdem dass ihr mal drüberguckt ;-)

Ich hab den beitrag jetzt editiert wie ihr denk ich mal selbst seht.
 

L-user

Newbie
Solli Olli ,

mach mal das:

Code:
http_port 3128
icp_port 3130
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
#************************************
# Cache-Optionen
cache_mem 8 MB
cache_swap_low 90
cache_swap_high 95
maximum:objekt_size 4096 KB
minimum_objekt_size 0 KB
#Das war der Fehler (wahrscheinlich)
cache_replacment_policy lru
memory_replacement_policy lru
#*************************************
#Unter dem "cache.log"  findest du die Fehlermeldungen
cache_dir ufs 100 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
#*************************************
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localnet src 192.168.10.1/255.255.255.0
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 allow manager localnet
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet

#**************************************
#eigene ACL's
acl ARHOSTS src 192.168.10.0 - 192.168.10.255
http_access allow ARHOSTS
http_access deny all
#**************************************

http_reply_access allow all
icp_access allow all
coredump_dir /var/cache/squid
#*************************************
cache_mgr root
cache_effektive_user proxy
cache_effektive_group proxy
visible_hostname ARULIX2.PRIVAT.LOCAL
#*************************************

Auf deinem Browser unter Verbindungen noch den Squid einstellen:

IP= 192.168.10.1 Port= 3128

für alle Protokolle

das wars !!! :lol:


PS:http://www.linux-club.de/viewtopic.php?t=13451

Gruß L-user
 

L-user

Newbie
Sers

Das freut mich ja.

Du solltest aber trotzdem wenn es geht das Squid-Administrationshandbuch mal ankucken.

http://www.squid-handbuch.de/


greets L-user
 
Oben