

Модератор: vadim64
Код: Выделить всё
acl lamers src "/usr/local/etc/squid/lamery"
acl putin src 192.168.1.2/255.255.255.255
acl marchela src 192.168.1.154/255.255.255.255
acl limon src 192.168.1.226/255.255.255.255
acl vitek src 192.168.1.170/255.255.255.255
acl murchik src 192.168.1.107/255.255.255.255
acl lustuk src 192.168.1.112/255.255.255.255
acl palashek src 192.168.1.109/255.255.255.255
acl kost src 192.168.1.245/255.255.255.255
acl lis src 192.168.1.142/255.255.255.255
acl stop_http urlpath_regex -i '/usr/local/etc/squid/blok'
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl webserver src 192.168.1.158/255.255.255.255
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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
http_access allow manager localhost
http_access allow manager webserver
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow putin
http_access allow vit
http_access allow vitek
http_access allow limon
http_access allow marchela
http_access allow palashek
http_access allow ageev
http_access allow lustuk
http_access allow murchik
http_access allow kost
http_access allow lamers
http_access allow lis
http_access deny all
http_port 192.168.1.158:3128 transparent
hierarchy_stoplist cgi-bin ?
cache_mem 64 MB
maximum_object_size_in_memory 200 KB
cache_dir ufs /usr/local/squid/cache 3072 16 256
logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
access_log /usr/local/squid/logs/access.log squid
logfile_rotate 0
debug_options ALL,1
url_rewrite_program /usr/local/bin/squidGuard
refresh_pattern -i .gif$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .png$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .jpg$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .jpeg$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .pdf$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .zip$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .tar$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .gz$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .tgz$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .exe$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .prz$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .ppt$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .inf$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .swf$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .mid$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .wav$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i .mp3$ 43200 100% 43200 override-lastmod override-expire
delay_pools 11
delay_class 1 1
delay_class 2 1
delay_class 3 1
delay_class 4 1
delay_class 5 1
delay_class 6 1
delay_class 7 1
delay_class 8 1
delay_class 9 1
delay_class 10 1
delay_access 1 allow marchela stop_http
delay_access 1 deny all
delay_access 2 allow lustuk stop_http
delay_access 2 deny all
delay_access 3 allow palashek stop_http
delay_access 3 deny all
delay_access 4 allow lustuk stop_http
delay_access 4 deny all
delay_access 5 allow kost stop_http
delay_access 5 deny all
delay_access 6 allow murchik stop_http
delay_access 6 deny all
delay_access 7 allow limon stop_http
delay_access 7 deny all
delay_access 9 allow vitek stop_http
delay_access 9 deny all
delay_access 10 allow lis stop_http
delay_access 10 deny all
delay_parameters 1 16384/16384
delay_parameters 2 16384/16384
delay_parameters 3 16384/16384
delay_parameters 4 16384/16384
delay_parameters 5 16384/16384
delay_parameters 6 16384/16384
delay_parameters 7 16384/16384
delay_parameters 8 16384/16384
delay_parameters 9 16384/16384
delay_parameters 10 16384/16384
icp_port 3130
coredump_dir /usr/local/squid/cache
Код: Выделить всё
[code]uname -a
Код: Выделить всё
(20:36:19 </film/novi/reras>) 0 # uname -a
FreeBSD guga.chipidron.com 6.3-RELEASE FreeBSD 6.3-RELEASE #1: Sat Aug 30 18:51:08 EEST 2008 putin@guga.chipidron.com:/usr/obj/usr/src/sys/LAST i386
(20:36:24 </film/novi/reras>) 0 # pkg_info | grep squid
lightsquid-1.7.1_1 A light and fast web based squid proxy traffic analyser
squid-3.0.10 HTTP Caching Proxy