Re: [squid-users] running multiple instances

From: Metal Gear <finattack@dont-contact.us>
Date: Mon, 11 Jul 2005 16:28:33 +0500

Here are the conf files,
---------------------------------------------------------------------------------
First one

maximum_object_size 50 MB
cache_mem 256 MB
cache_dir ufs /usr/local/squid/var/cache 9000 256 256

forwarded_for off

acl Gopher proto Gopher
http_access deny Gopher

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 mylocalnet src 192.168.1.0/255.255.255.0
acl SSL_ports port 443 563
acl Safe_ports port 21 22 23 70 80 100 210 443 563 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

http_access allow manager localhost
http_access deny manager

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

acl porn url_regex "/usr/local/squid/etc/sites/block"
http_access deny porn mylocalnet

#acl blockimages urlpath_regex -i \.(jpg)$ \.(gif)$ \.(jpeg)$ \.(png)$
\.(exe)$ \.(zip)$ \.(mp3)$ .jpg .gif .jpeg .png .exe .zip .mp3
#acl blockimages urlpath_regex -i \.(jpg)$ \.(gif)$ \.(jpeg)$ \.(png)$
\.(exe)$ \.(zip)$ \.(mp3)$
#http_access deny blockimages mylocalnet

http_access allow mylocalnet
http_access deny all
icp_access allow all
miss_access allow all

cache_mgr admin@myisp.net

visible_hostname www.myisp.net
unique_hostname www.myisp.net

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

http_port 3128
cache_effective_user squid
#cache_store_log /usr/local/squid/var/logs/store.log

#redirect_program /usr/local/bin/SquidClamAV_Redirector.py -c
/etc/squid/SquidClamAV_Redirector.conf
#redirect_children 100

ftp_user Squid@myisp.net
ftp_list_width 32
ftp_passive on
ftp_sanitycheck on
ftp_telnet_protocol on
hosts_file /etc/hosts
----------------------------------------------------------------------------------------------
Second one
maximum_object_size 2 MB
cache_mem 5 MB
cache_dir ufs /usr/local/squid/var/temcache 5 10 10

forwarded_for off

cache_access_log /usr/local/squid/var/access.log
cache_log /usr/local/squid/var/cache.log
#log_mime_hdrs on

acl Gopher proto Gopher
http_access deny Gopher

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 mylocallan src 192.168.1.0/255.255.255.0
acl SSL_ports port 443 563
acl Safe_ports port 21 22 23 70 80 100 210 443 563 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

http_access allow manager localhost
http_access deny manager

http_access allow Safe_ports
http_access allow CONNECT SSL_ports

#acl blockimages urlpath_regex -i \.(jpg)$ \.(gif)$ \.(jpeg)$ \.(png)$
\.(exe)$ \.(zip)$ \.(mp3)$ .jpg .gif .jpeg .png .exe .zip .mp3

acl blockimages urlpath_regex -i \.(jpg)$ \.(gif)$ \.(jpeg)$ \.(png)$
\.(exe)$ \.(zip)$ \.(mp3)$

http_access deny blockimages mylocallan
http_access allow mylocallan
icp_access allow all
miss_access allow all
http_access deny all

cache_mgr admin@myisp.net

visible_hostname www1.myisp.net
unique_hostname www1.myisp.net

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

http_port 8080
cache_effective_user squid
#cache_store_log /usr/local/squid/var/logs/store.log

#redirect_program /usr/local/bin/SquidClamAV_Redirector.py -c
/etc/squid/SquidClamAV_Redirector.conf
#redirect_children 100

ftp_user Squid@myisp.net
ftp_list_width 32
ftp_passive on
ftp_sanitycheck on
ftp_telnet_protocol on
hosts_file /etc/hosts
----------------------------------------------------------------------------------------------
Received on Mon Jul 11 2005 - 05:28:34 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:02 MDT