PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : squid als squid user bringt Fehlermeldung



newbie2007
02.12.07, 08:36
Hallo,
habe gelesen, dass man als nicht "root" User nicht auf die priviligierten Ports (< 1024) zugreifen kann. Wenn ich folgendes eingebe :


service squid restart

Schreibt er im log folgendes:


squid[2246]: Squid Parent: child process 2248 started
Dec 2 05:41:08 localhost (squid): Cannot open HTTP Port
Dec 2 05:41:08 localhost squid[2246]: Squid Parent: child process 2248 exited due to signal 6
Dec 2 05:41:12 localhost squid[2246]: Squid Parent: child process 2255 started
Dec 2 05:41:12 localhost (squid): Cannot open HTTP Port


Wie kann ich dem squid user erlauben auf die unteren ports zugreifen zu dürfen, bzw wie löst man das Problem üblicherweise?

Hier noch meine Config :


http_port 172.168.8.3:3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 64 MB
emulate_httpd_log on
ftp_user squid@test.at
ftp_passive on
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

#redirect_program /usr/sbin/squidGuard
#redirect_children 5

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

http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
acl VERWALTUNG src 172.16.8.0/22
acl VPN src 192.168.0.0/26

http_access allow localhost
http_access allow VERWALTUNG
http_access allow VPN

http_access deny all
http_reply_access allow all

icp_access allow all
cache_mgr squid@test.at
cache_effective_user squid
forwarded_for off
#coredump_dir /var/cache/squid


Ich danke euch

newbie2007
02.12.07, 10:11
Hallo @ll,
hab mich in der ip Adresse vertippt, das war der Fehler, verzeiht mir das voreilige posting.

danke !!