Forum Discussion

marcohald's avatar
marcohald
Copper Contributor
Jul 05, 2021

DOINC / Connected Cache Proxy Issue

Hi,

 

I'm evaluating MCC for our environment.

The Problem is that MCC uses our Proxy but sends the wrong URI in the GET Request.

It omits the whole Host Part. In the Host Header it is set correctly.

I have a Screenshot of the Wireshark Packets from MCC (left) and Internet Explorer (right) which both request the URI http://b1.download.windowsupdate.com/mscomtest/cedtest/r20.gif

As you can see the from MCC does not contain the Protocol or the Hostname of the Server.

The Request from Internet Explorer does contain it

 

 

The Response from the Proxy Server to the MCC Request looks like that

The Version of the DoinInstall.exe is 1.5.4.1512

I have found the thread https://techcommunity.microsoft.com/t5/configuration-manager/doinc-connected-cache-and-proxy/m-p/1046535 from hjeppesen but this was more a general Problem, that at the time he tested it, the MCC had no Proxy Support.

 

Regards Marco

 

  • ChristianOeser's avatar
    ChristianOeser
    Copper Contributor

    marcohald 

    Hi Marco,

    this problem still exists with version 1.5.5.14088 (DoincInstall.exe). The main error is the get request with the shortened URL without hostname. This is because the proxy configuration is not correct in the IIS ARR module.

     

    You need the following configurations:

    1. The Servers under Server Farm in IIS must be the original servers like "assets.xbox.com" and not your proxy server

    2. Under your IIS Server go to management -> Configuration Editor. There you choose Section webFarms. Under each Farm there are properties. You need applicationRequestRouting->protocol->proxy. Here you can enter your proxy server like proxy.youcompany.com:80

     

    If you do this under Farm_download.windowsupdate.com_**** then the test will succeed

     

    Invoke-WebRequest -URI "http://connectedcache.yourcompany.com/mscomtest/wuidt.gif" -Headers @{"Host"="b1.download.windowsupdate.com"}

     

    The error results of a wrong setupp implementation under SMS_DP$\Ms.Dsp.Do.Inc.Setup\SetupARRProxy.ps1

     

    From line 70 to 82 comment eeverythink out.

    From line 95 to 100 comment eeverythink out.

    Add on Line 114 the following code:

     

    if ($ProxyString)
    {
    Write-Host $(Get-Prefix) "Updating applicationRequestRouting/protocol/proxy to $ProxyString"
    Set-WebConfigurationProperty -pspath $PSPath -Filter "/webFarms/webFarm[@name='$FarmName']/applicationRequestRouting/protocol" -Name "proxy" -Value "$ProxyString"
    }

     

    Now the installation is successful.

     

    Kind regards,

    Christian

Resources