Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2003 14:29:06 +0200
From:      "Roland Giesler" <roland@giesler.za.net>
To:        <freebsd-questions@freebsd.org>
Subject:   Squid not accessible
Message-ID:  <NFEBLNMJLPMABJMOEINDKEIECJAA.roland@giesler.za.net>

next in thread | raw e-mail | index | archive | help
I had squid running on my FBSD box, but after restarting after a
power-failure, squid doesn't allow clients to connect any more.  Here's the
cache.log after starting squid:

2003/12/18 13:51:50| Starting Squid Cache version 2.4.STABLE7 for
i386-portbld-freebsd4.7...
2003/12/18 13:51:50| Process ID 16350
2003/12/18 13:51:50| With 4528 file descriptors available
2003/12/18 13:51:50| Performing DNS Tests...
2003/12/18 13:51:50| Successful DNS name lookup tests...
2003/12/18 13:51:50| DNS Socket created on FD 4
2003/12/18 13:51:50| Adding nameserver 196.38.110.1 from /etc/resolv.conf
2003/12/18 13:51:50| Adding nameserver 196.38.110.2 from /etc/resolv.conf

My squid.conf file is:

http_port 192.168.99.2:3132
https_port 192.168.99.2:3132

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

cache_mem 16 MB
cache_dir ufs /usr/local/squid/cache 200 16 256

maximum_object_size 10240 KB

cache_replacement_policy GDSF

cache_access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log
cache_store_log /usr/local/squid/logs/store.log
emulate_httpd_log on

# mime_table /usr/local/etc/squid/mime.conf
# log_mime_hdrs off
# ftp_passive on

acl localhost src 127.0.0.1/255.255.255.255
acl localclient src 192.168.99.0/255.255.255.0
acl manager proto cache_object
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 all src 0.0.0.0/0.0.0.0

http_access allow manager localhost
http_access allow localhost localclient

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access deny all

visible_hostname mail.theempire.co.za
unique_hostname mail.theempire.co.za

buffered_logs on

never_direct deny localclient
never_direct allow all

cache_effective_user nobody
cache_effective_group nogroup

--end of squid.conf-

I don't get any error when squid starts, it just doesn't work.  Any help
anybody can offer?

Thanks

Roland



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NFEBLNMJLPMABJMOEINDKEIECJAA.roland>