Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Новый участник


Сообщения: 15
Благодарности: 0

Профиль | Сайт | Отправить PM | Цитировать


 Мой squid.conf. Squid v. 2.3

http_port 10.0.0.1:3128
http_port xxxx.xxxxxxxx.net.ua:3128

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

maximum_object_size 256 KB

ipcache_size 1024
ipcache_low  90
ipcache_high 95

fqdncache_size 1024

cache_dir ufs /var/cache2 512 64 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
emulate_httpd_log on
mime_table /etc/squid/mime.conf

log_mime_hdrs off
pid_filename /var/run/squid.pid
debug_options ALL,1
log_fqdn off
ftp_user Squid@motor.melitopol.net
cache_dns_program /usr/lib/squid/dnsserver

dns_children 5
pinger_program /usr/lib/squid/pinger

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

quick_abort_min 16 KB
quick_abort_max 16 KB
quick_abort_pct 95

negative_ttl 5 minutes
positive_dns_ttl 6 hours
negative_dns_ttl 5 minutes


connect_timeout 120 seconds
dead_peer_timeout 18000 seconds
peer_connect_timeout 3000 seconds
siteselect_timeout 4 seconds
read_timeout 15 minutes
request_timeout 30 seconds

client_lifetime 1 day
half_closed_clients on
pconn_timeout 120 seconds
ident_timeout 10 seconds
shutdown_lifetime 30 seconds

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 SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
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
acl FTPs proto FTP
acl PAGES urlpath_regex \.exe$ \.zip$ \.tar$ \.rar$ \.tgz$ \.mp3$ \.arj$
acl Mynet src "/etc/squid/ip-memz"

acl Sqadmin src xxxxx.xxxxxxxxx.net
acl myPeer src xxxxxx.xxxxxxxxx.net
acl MyServers dstdomain xxxxx.xxxxxxxx.net.ua

http_access allow manager localhost
http_access allow manager Sqadmin
http_access allow Mynet

http_access deny manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

http_access deny all
icp_access allow all
miss_access allow all

acl ident_aware_hosts src 10.0.0.0/255.255.255.224
ident_lookup_access allow ident_aware_hosts
ident_lookup_access deny all

cache_mgr webmaster

cache_effective_user squid
cache_effective_group squid

visible_hostname xxxxx.xxxxxxxx.net.ua
httpd_accel_with_proxy off

append_domain .xxxx.xxxxxxxx.net.ua
log_icp_queries off
cachemgr_passwd FG8tf all
store_avg_object_size 13 KB
store_objects_per_bucket 50
client_db off
query_icmp off

never_direct allow Mynet
strip_query_terms on
coredump_dir /var/log/squid/

always_direct allow all


Отправлено: 09:55, 13-12-2003 | #12