Author Topic: Squid + windows update  (Read 12004 times)

dinho

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Squid + windows update
« on: June 09, 2008, 01:43:38 am »
and there. if help is how to enable the windows update in proxy.

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

refresh_pattern windowsupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern www.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims

Dinho.

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: Squid + windows update
« Reply #1 on: June 09, 2008, 09:22:03 am »
You may modify the eBox squid configuration file template which is placed in /usr/share/ebox/stubs/squid/.

Take into account every eBox upgrade will overwrite this template, so back up your configuration modifications.
My secret is my silence...

centaur5

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +1/-0
    • View Profile
Re: Squid + windows update
« Reply #2 on: April 23, 2009, 03:51:17 am »
I know this used to work back in November when I configured those lines on an Ebox machine and then downloaded updates on one machine then the other 2 downloaded extremely quick from the Squid server.  However, it appears this no longer works as it now takes just as long on each machine to get new updates.  Does anybody know if M$ did something and if there is an easy alternative to cache updates again?

valshare

  • Zen Apprentice
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: Squid + windows update
« Reply #3 on: November 12, 2010, 11:09:58 am »
bump

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Squid + windows update
« Reply #4 on: November 12, 2010, 04:31:27 pm »
In Zentyal 2.0, these lines are always added to the squid.conf for caching windows and debian/ubuntu updates:

Code: [Select]
# windows updates
refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://.*\.update\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://download\.microsoft\.com/ 0 80% 20160 reload-into-ims
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://w?xpsp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://w2ksp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
# linux updates
refresh_pattern http://.*\.archive\.ubuntu\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://(ftp|http)[0-9]*\.[a-z]+\.debian\.org/ 0 80% 20160 reload-into-ims

So there should not be need of manually adding them, but if you any of these lines are wrong and you can contribute with a working ones it would be great.
Zentyal Server Lead Developer

valshare

  • Zen Apprentice
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: Squid + windows update
« Reply #5 on: March 09, 2011, 08:10:10 am »
Hi,

i miss the line

Code: [Select]
refresh_pattern http://.*\.download\.windowsupdate\.com/ 0 80% 20160 reload-into-ims

Can you add it for the line

Code: [Select]
http://au.download.windowsupdate.com/

to the squid.conf?

regards,

valle
« Last Edit: March 09, 2011, 08:12:19 am by valshare »

jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +45/-1
    • View Profile
Re: Squid + windows update
« Reply #6 on: March 27, 2011, 11:57:31 pm »
http://trac.zentyal.org/changeset/20931 thanks for reporting this!