[squid-users] a simple advice.

From: Mauro <mauro.sanna6@dont-contact.us>
Date: Mon, 7 Apr 2003 11:02:41 +0200

I have 600 client to connect to internet.
I use a machine with 1,2Gb ram and 3 scsi disk in raid5, total amount of disk
space is about 70Gb.
In this machine I have installed linux debian woody with squid.
Is suitable a configuration like this?

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
acl local dst 192.168.0.0/255.255.0.0
acl local-domain dstdomain .comune.cagliari.it
no_cache deny QUERY
no_cache deny local
no_cache deny local-domain

cache_mem 128 MB

cache_dir ufs /var/spool/squid 6000 16 256

redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf

redirect_children 10

reference_age 6 months

half_closed_clients off

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 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 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT

acl localnet src 192.168.0.0/255.255.0.0

http_access allow manager localhost
http_access deny manager
# Only allow purge requests from localhost
http_access allow purge localhost
http_access deny purge
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports

http_access allow localnet

http_access deny all

icp_access allow all

forwarded_for off

All the other parameters are set to default.

I think I can increase disk cache and cache_mem value.
But If I increase disk cache, say to 8Gb, I must modify also the L1 and L2
values from cache_dir parameter?
Or I can keep the defaults 16 and 256?
Thank you.

Mauro
Received on Mon Apr 07 2003 - 03:04:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:43 MST