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

SquidGuard startet nicht

Mr_Elan

Newbie
Hallo zusammen, ich habe folgendes Problem: Squid ist installiert (Suse 11.1) und läuft auch. Nun wollte ich einen Webfilter mit SquidGuard realisieren, doch ich komme einfach nicht weiter. Offensichtlich startet SG nicht.
Hier der Inhalt meiner squid.conf

# Festlegen der Ports auf denen Squib Verbindungen annimmt

http_port 192.168.100.1:3128
http_port 192.168.100.1:8080
http_port 3128
http_port 192.168.100.1:80
redirect_program /usr/local/bin/squidGuard

#Default:
# Squid als transparenten Proxy im Netz etablieren
httpd_accel_host virtual

httpd_accel_port 80

# TAG: httpd_accel_with_proxy on|off
httpd_accel_with_proxy on

# TAG: httpd_accel_uses_host_header on|off
httpd_accel_uses_host_header on

# Fehlt noch die Umleitung, die muss von Hand gestartet werden:
# iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

redirect_program /usr/local/bin/squidGuard

acl all src all
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 10.0.0.0/8
acl localnet src 172.16.0.0/12
acl localnet src 192.168.0.0/16
acl SSL_ports port 443
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
acl apache rep_header Server ^Apache

broken_vary_encoding allow apache

access_log /var/log/squid/access.log squid

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost

icp_access allow localnet
icp_access deny all

hierarchy_stoplist cgi-bin ?

cache_mem 8 MB

memory_replacement_policy lru

cache_replacement_policy lru

cache_dir ufs /var/cache/squid 100 16 256

minimum_object_size 0 KB

maximum_object_size 4096 KB

cache_swap_low 90

cache_log /var/log/squid/cache.log

cache_store_log /var/log/squid/store.log

emulate_httpd_log off

ftp_passive on

refresh_pattern ^ftp: 1440 20 10080
refresh_pattern ^gopher: 1440 0 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0 0
refresh_pattern . 0 20 4320

upgrade_http0.9 deny shoutcast

connect_timeout 2 minutes

client_lifetime 1 days

error_directory /usr/share/squid/errors/German

cache_swap_high 95

cache_mgr webmaster
 

Stefan Staeglich

Advanced Hacker
  1. reicht die Zeile mit squidGuard einmal.
  2. fehlt die Angabe der Konfigurationsdatei für squidGuard.
  3. stimmt die Pfadangabe, wenn du nicht gerade SquidGuard selber kompiliert hast, nicht.

http://www.linupedia.org/opensuse/SquidGuard_als_Jugendschutzfilter
 
OP
M

Mr_Elan

Newbie
Vielen Dank für deine Antwort. Ich habe mich an die Anweisungen in deinen link gehalten. Nach einen
rcsquid restart


Shutting down WWW-proxy squid 2009/08/05 10:07:13| parseConfigFile: squid.conf:1 1 unrecognized: 'httpd_accel_host'
2009/08/05 10:07:13| parseConfigFile: squid.conf:13 unrecognized: 'httpd_accel_p ort'
2009/08/05 10:07:13| parseConfigFile: squid.conf:16 unrecognized: 'httpd_accel_w ith_proxy'
2009/08/05 10:07:13| parseConfigFile: squid.conf:19 unrecognized: 'httpd_accel_u ses_host_header'
FATAL: Bungled squid.conf line 24: redirect_program /usr/local/bin/squidGuard
Squid Cache (Version 2.7.STABLE5): Terminated abnormally.
- wait a minute or two... ...................
......................................... Warning: squid killed ! done
Starting WWW-proxy squid startproc: exit status of parent of /usr/sbin/squid: 1
 
Oben