Вот заметил странность в работе squid. Так сложилось, что директор нашей компании очень мультимедийный человек, и любит полазить по youtube и так далее, в следствии чего было замечено что сайт ютуба очень должго прогружается, причем не само видео, а старт загрузки, как на скрине http://s54.radikal.ru/i143/1012/d4/550d0ce390d0.jpg Вот в таком состоянии страница висит около 50 секунд, иногда даже больше бывает.
Вот мои конфиги
Код: Выделить всё
[root@gateway /home/saylor]# uname -a
FreeBSD gateway.illichivska.com.ua 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Thu Oct 28 15:40:57 UTC 2010 root@:/usr/obj/usr/src/sys/GATEWAY i386
Код: Выделить всё
[root@gateway /home/saylor]# cat /usr/local/etc/squid/squid.conf
http_port 3128 transparent
acl QUERY urlpath_regex cgi-bin \? cmd dst dk?st.cmd
no_cache deny QUERY
cache_peer 127.0.0.1 parent 3127 0 default no-query
cache_mem 256 MB
cache_swap_high 95
cache_swap_low 90
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 16 KB
cache_dir ufs /usr/local/etc/squid/cache 512 16 256
logformat squid %ts.%03tu %6tr %>a %Ss %03Hs %<st %rm %ru %un %Sh %<A %mt
logformat squidmime %ts.%03tu %6tr %>a %Ss %03Hs %<st %rm %ru %un %Sh %<A %mt [%>h] [%<h]
logformat common %>a %ui %un [%tl] "%rm %ru HTTP %rv" %Hs %<st %Ss:%Sh
logformat combined %>a %ui %un [%tl] "%rm %ru HTTP %rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
#Папка с логами
access_log /usr/local/etc/squid/log/access.log squid
cache_log /usr/local/etc/squid/log/cache.log
cache_store_log /usr/local/etc/squid/log/store.log
logfile_rotate 1
#refresh_pattern -i \.flv$ 10080 90% 999999 reload-into-ims
#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 manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 5223
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl ICQ_port port 5190 # icq
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 5222 # jabber
acl Safe_ports port 1025-65535 # unregistered ports
acl CONNECT method CONNECT
#From ClamAV
acl FTP proto FTP
always_direct allow SSL_Ports
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !Safe_ports
http_reply_access allow all
icp_access allow all
cache_mgr admin@domain.com
cache_effective_user squid
httpd_suppress_version_string on
visible_hostname domain.com
forwarded_for off
header_access Via deny all
client_db on
coredump_dir /usr/local/etc/squid/cache
acl provider url_regex -i "/usr/local/etc/squid/acl/provider"
acl good_url url_regex "/usr/local/etc/squid/acl/good_url"
acl web_server_users src 192.168.0.0/24
acl web_server src 192.168.0.11
http_access allow good_url
http_access allow provider
acl InternetUsers src "/usr/local/etc/squid/acl/InternetUsers"
acl admin src "/usr/local/etc/squid/acl/admin_ip"
acl no_quota url_regex -i "/usr/local/etc/squid/acl/no_quota_url"
# Дневное время
acl day time 09:00-19:00
# Количество пулов 2. Ночной и дневной
delay_pools 2
delay_class 1 2
delay_parameters 1 -1/-1 10020480/1001048576
delay_access 1 allow InternetUsers day !provider !admin
delay_access 1 deny all
delay_class 2 2
delay_parameters 2 -1/-1 -1/-1
delay_access 2 allow !day InternetUsers !admin
delay_access 2 deny all
http_access allow admin
http_access allow web_server_users web_server
http_access allow InternetUsers
http_access deny all
url_rewrite_program /usr/local/rejik/redirector /usr/local/rejik/redirector.conf
url_rewrite_children 5
error_directory /usr/local/etc/squid/errors/Russian-1251