All pastes #494801 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-18 12:51 UTC
rendered paste body

vpn# vi squid.conf
http_port 3128
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy  on
httpd_accel_uses_host_header on

cache_mem 512 MB
cache_dir ufs /usr/local/squid/cache 15360 16 256

cache_access_log /usr/local/squid/logs/access_log
cache_store_log /usr/local/squid/logs/store_log
cache_log /usr/local/squid/logs/cache_log
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl canton src 10.0.1.0/24
acl albany src 10.0.2.0/24
acl utica src  10.0.6.0/24

http_access allow manager
http_access allow albany
http_access allow canton
http_access allow utica
http_access deny all

#Blocks Streaming radio
acl streaming rep_mime_type -i ^video/x-ms-asf^video/x-ms-sf^audio/mpeg^application/x-shockwave-flash

http_access deny streaming

#Blocks file extentsions
acl BLOCK url_regex "/usr/local/etc/squid/filetype.acl"
http_access deny BLOCK

deny_info ERR_BLOCKED_FILES BLOCK