November 28, 2009

FreeBSD Прокси-сервер SQUID

http_port 3128 transparent
icp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 256 MB
maximum_object_size 8092 KB
maximum_object_size_in_memory 512 KB
cache_dir ufs /usr/local/squid/cache 2048 64 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_mgr admin@example.com
visible_hostname example.com
tcp_outgoing_address 123.123.123.123
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.0/8
acl our_networks src 192.168.0.0/24
acl denied_sites dstdomain "/usr/local/etc/squid/rules/denied_ext.conf"

http_access deny denied_sites
#http_access allow allowed_sites
#http_access deny limited_IP
http_access allow our_networks
http_access allow localhost
http_access deny all

#httpd_accel_host virtual
#httpd_accel_port 80
#httpd_accel_uses_host_header on

coredump_dir /usr/local/squid/cache
pid_filename /usr/local/squid/logs/squid.pid
error_directory /usr/local/etc/squid/errors/Russian-1251

No comments:

Post a Comment