我有一个 squid 代理服务器,我的客户端在 Windows XP 上运行。如何让 Windows XP 通过代理访问 Windows 更新站点?简而言之,通过代理,Windows 无法下载更新。任何建议都将不胜感激。
答案1
proxycfg -p <proxy>:<port> <bypass list>
更新:我们看到
2011-09-23 15:52:23:843 372 11c Agent * Access type: Named proxy
2011-09-23 15:52:23:843 372 11c Agent * Default proxy: 192.168.1.2:3128
2011-09-23 15:52:23:843 372 11c Agent * Default proxy bypass: *.local;<local>
在 Windowsupdate.log 中,因此它配置为使用代理。使用代理检查更新的机器是否可用,telnet 192.168.1.2 3128
并搜索 squid 日志,答案一定在那里
答案2
我添加了以下几行并且效果很好:
acl windowsupdate dstdomain windowsupdate.microsoft.com;
acl windowsupdate dstdomain .update.microsoft.com;
acl windowsupdate dstdomain download.windowsupdate.com;
acl windowsupdate dstdomain redir.metaservices.microsoft.com;
acl windowsupdate dstdomain images.metaservices.microsoft.com;
acl windowsupdate dstdomain c.microsoft.com;
acl windowsupdate dstdomain www.download.windowsupdate.com;
acl windowsupdate dstdomain wustat.windows.com;
acl windowsupdate dstdomain crl.microsoft.com;
acl windowsupdate dstdomain sls.microsoft.com;
acl windowsupdate dstdomain productactivation.one.microsoft.com;
acl windowsupdate dstdomain ntservicepack.microsoft.com;
acl CONNECT method CONNECT;
acl wuCONNECT dstdomain www.update.microsoft.com;
acl wuCONNECT dstdomain sls.microsoft.com;
http_access allow CONNECT wuCONNECT localnet;
http_access allow windowsupdate localnet;