Discussion Locked

Squid and Windows updates

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Greets,

I have Squid running on a local box. We do a lot of Windows Updates. My problem is that Squid doesn't seem to be caching the Windows Updates. I have read several posts in the net relating to this issue but haven't seen any definitive answers as to which items in the config file are crucial to getting this to happen. If I download a large file to my desktop, delete it, then download it again, it seems to cache it fine. But with Windows updates, that doesn't seem to be the case. I don't believe the file size is the issue. I have it set to 25 MB.

Is anybody using Squid to cache Windows updates that could email or post their squid.conf file?

Thanks,
Brian

2 replies

by support

I have successfully got this working with the following:

Ok you need to download windowsupdatecache.tar.gz from http://www.glob.com.au/windowsupdate_cache/

then follow instructions in the readme.

You will need to configure the redirector for squid so that it only gets called for appropriate sites. sample config file entries for squid.conf

redirect_program /etc/squid/redir/redir.pl
acl sites4redir url_regex "/etc/squid/sites4redir"
redirector_access allow sites4redir

/etc/squid/sites4redir contains:
download.microsoft.com
download.windowsupdate

this ensures we only redirect for the sites that have the downloads (i.e. don't try to cache v4.windowsupdate.com, it will break windows update)

Be sure you set permissions as suggested when setting up the apache server.

Good Luck!

by brianaaa12

I noticed that the fix you posted pointed to my "htdocs" directory. Do I have to have Apache installed and running for this fix to work? The windowsupdate file you mentioned makes reference to this directory.

Brian

This discussion is closed to new replies.