Squid mit Authentifikation
Ralph Meyer
ralph at schosemail.de
Wed Oct 6 16:02:32 CEST 2004
Hallo Liste,
ich spiele hier gerade mit der Firewall
IPCOP 1.4. Darauf läuft ein Squid 2.5 Stable6.
Nun habe ich versucht, die Authentifikation
mittels smb_auth einzubauen. Die squid.conf
sieht folgendermaßen aus :
<Anfang>
shutdown_lifetime 5 seconds
icp_port 0
http_port 192.168.0.2:800
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_effective_user squid
cache_effective_group squid
pid_filename /var/run/squid.pid
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
log_mime_hdrs off
forwarded_for off
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl proxynutzer proxy_auth REQUIRED
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 Safe_ports port 800 # Squids port (for icons)
acl IPCop_http port 81
acl IPCop_https port 445
acl IPCop_ips dst 192.168.0.2
acl IPCop_networks src 192.168.0.0/255.255.255.0
acl CONNECT method CONNECT
##Access to squid:
#local machine, no restriction
http_access allow localhost
#GUI admin if local machine connects
http_access allow IPCop_ips IPCop_networks IPCop_http
http_access allow CONNECT IPCop_ips IPCop_networks IPCop_https
#Deny not web services
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#Finally allow IPCop_networks clients
http_access allow IPCop_networks proxynutzer
http_access deny all
maximum_object_size 20000 KB
minimum_object_size 0 KB
cache_mem 4630 KB
cache_dir aufs /var/log/cache 1000 16 256
request_body_max_size 0 KB
reply_body_max_size 0 allow all
auth_param basic program /usr/local/samba/bin/smb_auth -W Eisenberg -U 192.168.1.1
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
visible_hostname Firewall
</Ende>
Wenn ich den squid nun starte, bekomme ich eine
Fehlermeldung. Der squid läuft, aber ohne smb_auth.
Die Fehlermeldung häng ich mal an.
Kann mir jemand einen Tip geben woran das liegt ?
Danke
Ralph
--
E-Mail : ralph at schosemail.de
Web : http://www.ralph-meyer.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: squid.log
Type: text/x-log
Size: 858 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20041006/2ef4dcdc/attachment.bin>
More information about the Linux
mailing list