Код: Выделить всё
http_port 192.168.1.200:8080
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl adm_no_limit src "/usr/local/etc/squid/adm_no_limit.txt"
acl adm src "/usr/local/etc/squid/adm.txt"
acl default src "/usr/local/etc/squid/default.txt"
acl porn url_regex "/usr/local/etc/squid/porno.txt"
acl rapids url_regex "/usr/local/etc/squid/rapids.txt"
acl Deny_domain dstdom_regex "/usr/local/etc/squid/deny_domain.txt"
acl files urlpath_regex -i "/usr/local/etc/squid/felis_urlpath.txt"
acl mime_files rep_mime_type "/usr/local/etc/squid/felis_mime.txt"
acl media urlpath_regex -i "/usr/local/etc/squid/media_content.txt"
acl mime_media rep_mime_type "/usr/local/etc/squid/media_mime.txt"
acl banners urlpath_regex -i "/usr/local/etc/squid/baner1.txt"
acl multimedia urlpath_regex -i "/usr/local/etc/squid/multimedia.txt"
acl raznoe urlpath_regex -i "/usr/local/etc/squid/raznoe.txt"
acl all_dom dstdom_regex -i .*
acl localnet src 192.168.1.1-192.168.1.254/32
acl SSL_ports port 443 9080 9443 5000 5001 5002 1024
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 Safe_ports port 9080 # bank
acl Safe_ports port 9443 # bank
acl Safe_ports port 5000 # bank
acl Safe_ports port 5001 # bank
acl Safe_ports port 5002 # bank
acl Safe_ports port 25 # mail
acl Safe_ports port 110 # mail
acl Safe_ports port 1024 # sb
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny banners
http_access deny porn
http_access allow adm_no_limit
http_access deny media
http_access deny rapids
http_access deny files
http_access deny deny_domain
http_access deny raznoe
http_access allow adm
http_access allow default
http_access deny all
icp_access allow localnet
icp_access deny all
access_log /var/squid/logs/access.log squid
pid_filename /var/squid/logs/squid.pid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
error_directory /usr/local/etc/squid/errors/Russian-1251
cache_effective_user squid
cache_effective_group squid
forwarded_for off