Guest User!

You are not Sophos Staff.

[1.1][BUG] Proxy Error Message in McsClient.log

Hi,

the Endpoint uses the automatic proxy configuration, but
the MCS Log reports errors. Our network setup is the following:

Endpoint -> Transparent Proxy -> Internet.

It connects to the MCS Backend and gets a successfull http status code 200 but error code 12180 is reported beforehand when configuring the proxy:

2013-04-12T15:06:00.770Z [ 3616] WARN  HttpServerImpl::GetAutomaticProxies Failed to get the automatic proxy configuration. The error code was 12180.
2013-04-12T15:06:00.770Z [ 3616] INFO  CommandHandler::GetCommands About to send the request to the server.
2013-04-12T15:06:00.770Z [ 3616] INFO  HttpServerImpl::SendRequest The HTTP request was initiated successfully.
2013-04-12T15:06:00.861Z [ 2808] INFO  HttpServerImpl::HttpEventInstanceCallback The HTTP request completed with status 200.
2013-04-12T15:06:00.861Z [ 2808] INFO  CommandHandler::HttpCallback The HTTP callback was called with the HTTP result code 200.
2013-04-12T15:06:00.861Z [ 3948] INFO  CommandHandler::AcknowledgeCommands The command handler is about to acknowledge commands.
2013-04-12T15:06:00.861Z [ 3948] INFO  CommandHandler::AcknowledgeCommands There are no commands to acknowledge.
2013-04-12T15:06:04.616Z [ 2664] INFO  EventHandler::SendData The event handler is about to send events to the server.
2013-04-12T15:06:07.200Z [ 2664] WARN  HttpServerImpl::GetAutomaticProxies Failed to get the automatic proxy configuration. The error code was 12180.
2013-04-12T15:06:07.210Z [ 2664] INFO  EventHandler::SendData About to send the request to the server.
2013-04-12T15:06:07.210Z [ 2664] INFO  HttpServerImpl::SendRequest The HTTP request was initiated successfully.

The proxy configuration is the default of Windows 7.
The Client receives it's policies and is updating correctly.

Btw will the configuration of manual proxys be recognized in a later version of the Cloud Endpoint Client?

Regards,

Sebastian A.
Parents
  • Hi,

    From what I can tell, the client tries all possible ways of connecting to the server at the same time in different threads, the first to respond wins and is used.  This should make a connection to the server quite reliable in all locations.

    The config file "Config.xml" is within:
    "\ProgramData\Sophos\Management Communications System\Endpoint\Config\"
    and by default it has:

    1
    
    1


    So to me it looks like it will always try to get proxy config even if not configured.

    The error code you mention would therefore be expected if not configured:
    ERROR_WINHTTP_AUTODETECTION_FAILED = 12180:
    "Returned by WinHttpDetectAutoProxyConfigUrl if WinHTTP was unable to discover the URL of the Proxy Auto-Configuration (PAC) file."
    Error Messages (Windows)

    Details on WinHttpDetectAutoProxyConfigUrl:
    WinHttpDetectAutoProxyConfigUrl function (Windows)

    As for manually defining proxies, the empty tags:


    within the config would suggest that proxies can be manually defined.  

    Regards,
    Jak
  • Hi Jak,

    with manually configuring the proxy I meant, configuring the settings of a proxy
    by using the IE Options on the endpoint or IE Options in the GPO of the domain
    and not a proxy pac file. 

    These settings should be transfered to the client by MCS imho.

    Regards,

    Sebastian A.
  • Hi @all,

    when you setup a proxy in ie settings (which i the default windows proxy setting) the endpoint installer should automatically recognize that, but it doesn't.
    I could easily reproduce this by using by using a normal, non-transparent proxy (which works fine otherwise) on a windows 7 machine, which means that this is a bug.
Reply Children
No Data