All pastes #806691 Raw Edit

Stuff

public text v1 · immutable
·published 2007-12-05 21:00 UTC
rendered paste body
http_port 3128 
cache_mem 512 MB

maximum_object_size 20480 KB
maximum_object_size_in_memory 5120 KB 

ipcache_size 8192
fqdncache_size 8192 

cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA 

cache_dir ufs /var/spool/squid 2000 16 256 

ftp_passive on 

refresh_pattern windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern ^http://.*\.cnn\.com 360 50% 4320 override-lastmod
refresh_pattern ^http://news\.bbc\.co\.uk 360 50% 4320 override-lastmod
refresh_pattern microsoft 1080 150% 10080 override-lastmod
refresh_pattern msn\.com 4320 150% 10080 override-lastmod
refresh_pattern ^http://.*\.doubleclick\.net 10080 300% 40320 override-lastmod
refresh_pattern ^http://.*FIDO 360 1000% 480
refresh_pattern \.r[0-9][0-0]$ 10080 150% 40320
refresh_pattern ^http://.*\.gif$ 1440 50% 20160
refresh_pattern ^http://.*\.asis$ 1440 50% 20160
refresh_pattern -i \.pdf$ 10080 90% 43200
refresh_pattern -i \.art$ 10080 150% 43200
refresh_pattern -i \.mp3$ 10080 150% 40320
refresh_pattern -i \.qtm$ 10080 150% 40320
refresh_pattern -i \.mid$ 10080 150% 40320
refresh_pattern -i \.viv$ 10080 150% 40320
refresh_pattern -i \.jpg$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.rar$ 10080 150% 40320
refresh_pattern -i \.ram$ 10080 150% 40320
refresh_pattern -i \.gif$ 10080 300% 40320 reload-into-ims
refresh_pattern -i \.txt$ 1440 100% 20160 reload-into-ims override-lastmod
refresh_pattern -i \.zip$ 2880 200% 40320
refresh_pattern -i \.arj$ 2880 200% 40320
refresh_pattern -i \.exe$ 2880 200% 40320
refresh_pattern -i \.tgz$ 10080 200% 40320
refresh_pattern -i \.gz$ 10080 200% 40320
refresh_pattern -i \.tgz$ 10080 200% 40320
refresh_pattern -i \.tar$ 10080 200% 40320
refresh_pattern -i \.Z$ 10080 200% 40320 

refresh_pattern ^ftp:           1440    70%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               14440   90%     14320 

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 users src 192.168.0.0/24
acl cafe src 192.168.3.0/24
acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl Safe_ports port 5150

#
# Add this to the bottom of the ACL section of squid.conf
#

acl home_network src 192.168.0.1/24
acl BadSites dstdomain "/usr/local/etc/tricted-sites.squid" 
#

#
# Block downloading on time 

acl dl time M T W H F A S 15:00-20:00
acl dltime urlpath_regex -i \.gz$ \.rpm$ \.mpeg$ \.mpe$ \.mpg$ \.ram$ \.iso$ \.wav$ \.mv$ \.3gp$ \.wmv$ 
 
#acl dltime urlpath_regex -i \.exe$ \.mp3$ \.tar.gz$ \.gz$ \.rpm$ \.zip$ \.rar$ \.avi$ \.mpeg$ \.mpe$ \.mpg$ \.ram$ \.rm$ \.iso$ \.wav$ \.mv$ \.3gp$ \.wmv$

acl CONNECT method CONNECT 
http_access deny dltime dl
http_access deny BadSites
http_access allow manager localhost
http_access allow users
http_access allow cafe
http_access deny manager
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports 

#http_access deny block
http_access deny all 

cache_mgr khurram.jn@gmail.com DataCable
visible_hostname Yk.Cable.Internet 

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

cache_effective_user squid
cache_effective_group squid

acl only18kusers src 192.168.3.1/255.255.255.0
acl all src 0.0.0.0/0.0.0.0
delay_pools 1
delay_class 1 3
delay_parameters 1 180000/180000 180000/180000 18000/18000
delay_access 1 allow cafe