Squid non fa la cache di Windowsupdate
Preso da Squid problems with WindowsUpdate v5
11.54 Squid problems with WindowsUpdate v5
By Janno de Wit
There seems to be some problems with Microsoft Windows to access the Windows Update website. This is especially a problem when you block all traffic by a firewall and force your users to go through the Squid Cache.
Symptom: WindowsUpdate gives e
rror codes like 0x80072EFD and cannot update, automatic updates aren't working too.
Cause: In earlier Windows-versions WindowsUpdate takes the proxy-settings from Internet Explorer. Since XP SP2 this is not sure. At my machine I ran Windows XP SP1 without WindowsUpdate problems. When I upgraded to SP2 WindowsUpdate started to give errors when searching updates etc.
The problem was that WU did not go through the proxy and tries to establish direct HTTP connections to Update-servers. Even when I set the proxy in IE again, it didn't help . It isn't Squid's problem that Windows Update doesn't work, but it is in Windows itself. The solution is to use the 'proxycfg' tool shipped with Windows XP. With this tool you can set the proxy for WinHTTP.
Commands:
C:\> proxycfg
- gives information about the current connection type. Note: 'Direct Connection' does not force WU to bypass proxy
C:\> proxycfg -d
- Set Direct Connection
C:\> proxycfg -p wu-proxy.lan:8080
- Set Proxy to use with Windows Update to wu-proxy.lan, port 8080
c:\> proxycfg -u
- Set proxy to Internet Explorer settings.
La versione corretta di proxycfg.exe la si può trovare su una macchina XP o 2003 in %SYSTEMROOT%\system32