با سلام به همه برو بچ persiannetworks
من bw ISP ما 384 می باشد...
بیشتر یوزرها با yahoo مشکل دارند از زمانی هست که وقتی 20 تا online بشه یوزرای بعدی yahoo با لا نمی آید .....
اگر تو این زمان 20 تا آنلاین cash )squid 2.6) ,از مدار خارج کنم حل می شود ...
اگر هم cash ورندارم یوزرها باید با with firwall یاهو آن بشوند ......
من کانفیگ squid می گذارم متشکر از همه ..........
کد:
http_port 3128 transparent
کد:
cache_mem 250 MB
dead_peer_timeout 30 seconds
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
maximum_object_size 32000 KB
maximum_object_size_in_memory 64 KB
minimum_object_size 0 KB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LRU
cache_dir aufs /cache1 2500 16 256
cache_dir aufs /cache2 2500 16 256
cache_dir aufs /cache3 2500 16 256
cache_dir aufs /cache4 2500 16 256
cache_access_log /var/log/squid/access.log
cache_store_log none
pid_filename /var/run/squid.pid
refresh_pattern windowsupdate.com/.*\.(cab|exe|psf) 4320 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|psf) 4320 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|psf) 4320 100% 43200 reload-into-ims
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#refresh_pattern -i .htm 10080 80% 28800 reload-into-ims override-lastmod
#refresh_pattern -i .html 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .js 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .exe 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .zip 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .dat 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .rar 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .cap 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .pdf 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .cab 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .rpm 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .bz2 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .tar 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .gz 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .EXE 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .ZIP 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .CAB 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .msi 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .PDF 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .doc 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .tgz 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .txt 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .rfc 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .jpg 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .gif 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .bmp 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .ico 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .swf 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .png 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .mpg 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .mpeg 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .wmv 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .mov 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .avi 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .mp3 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .wav 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .wma 10080 80% 28800 reload-into-ims override-lastmod
refresh_pattern -i .mid 10080 80% 28800 reload-into-ims override-lastmod
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
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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
acl nimda1 urlpath_regex -i \.elm$
acl nimda2 urlpath_regex -i root.exe
acl nimda3 urlpath_regex -i cmd.exe
acl nimda4 urlpath_regex -i ^http://.*www
acl nimda5 urlpath_regex -i readme.exe
acl nimda6 urlpath_regex -i default.id
acl nimda7 urlpath_regex -i :25
acl valid0 src 217.219.16.0/255.255.255.0
acl valid1 src 217.219.10.0/255.255.255.0
acl amir src 217.218.112.158
acl dialup src 172.16.10.0/255.255.255.0
acl wireless src 192.168.1.0/255.255.255.0
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
http_access allow localhost
http_access allow valid0
http_access allow valid1
http_access allow dialup
http_access allow wireless
http_access deny all
http_reply_access allow all
cache_effective_user squid
cache_effective_group squid
half_closed_clients on
cache_swap_high 100%
cache_swap_low 80%
visible_hostname msn
cache_mgr
info@msn.com
quick_abort_min 32 KB
quick_abort_max 32 KB
quick_abort_pct 95
negative_ttl 3 minutes
positive_dns_ttl 6 hours
pipeline_prefetch on
acl snmpkey snmp_community mypublic
snmp_port 3401
snmp_access allow snmpkey localhost
snmp_access deny all
موضوعات مشابه: