سلام .اول بگم که این تاپیک تکراری نیست و من قبلا ایجا راه اندازی و بهینه سازی Squid و کنترل پهنای باند را خوندم ولی این refresh pattern ها کار نمیکنه و پهنای باند من همین طور داره برای update این ویندوز و یاهو مسنجر میره .
من یه خورده گوگل کردم و این http://lists.debian.org/debian-isp/2.../msg00041.html را پیدا کردم
a useful set of refresh_patterns for squid.
there was one typo ("*." rather than ".*") in the first regexp, and three of
the regexps could be re-written in a more generic form, so that they're not
tied to particular versions of the service packs.
also, a literal "." should always be written as "\." in a regexp, otherwise it
matches *any* character.
# refresh patterns to enable caching of MS windows update
refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
# the next two can be rewritten as one regexp, which should also match other
# SP versions.
#refresh_pattern http://wxpsp2\.microsoft\.com/ 0 80% 20160 reload-into-ims
#refresh_pattern http://xpsp1\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://w?xpsp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
# ditto for the next one.
#refresh_pattern http://w2ksp4\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://w2ksp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://download\.microsoft\.com/ 0 80% 20160 reload-into-ims
# and some other windows updaters
refresh_pattern http://download\.macromedia\.com/ 0 80% 20160 reload-into-ims
refresh_pattern ftp://ftp\.nai\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://ftp\.software\.ibm\.com/ 0 80% 20160 reload-into-ims
(محتویات لینک را اینجا نوشتم تا اگر آدرسش عوض شد بارهم این تاپیک قابل استفاده باشه حالا اگر یه خورده طولانیه ببخشید)
ولی وقتی این refresh pattern ها را به اینصورت وارد squid.conf میکنم ازم ایراد میگیره و سرویسش start نمیشه . حالا نمیدونم باید چیکار کنم؟
موضوعات مشابه:
- no-refresh interval و refresh interval توی DNS
- refresh pattern هاي اسكويد
- Using Windows Server Update Service for the TMG Update Center
- Genuine microsoft update
- squid refresh pattern for news site