Unable to access Lifecycle Manager/Update Manager servers with squid proxy enabled for a vCenter that is not connected to the Internet
search cancel

Unable to access Lifecycle Manager/Update Manager servers with squid proxy enabled for a vCenter that is not connected to the Internet

book

Article ID: 439274

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • Unable to access Lifecycle Manager through an internal proxy.
  • Modifying the proxy settings through the vCenter Server Appliance Management Interface (VAMI) fails.
  • The proxy that the vCenter is connecting through is running a strict proxy server (such as squid).
  • Testing from the vCenter command line demonstrates that the proxy is properly allowing outbound traffic.
  • Direct connections to the internet fail as expected:
    root@vc[ ~ ]# curl -I https://broadcom.com
    curl: (7) Failed to connect to broadcom.com port 443 after 2 ms: Could not connect to server
    
  • However, traffic correctly routes when explicitly sent through the proxy, returning a successful HTTP 200 connection establishment and a 301 redirect:
    root@vc[ ~ ]# HTTPS_PROXY='http://proxy.example.com:3128/' curl -I https://broadcom.com
    HTTP/1.1 200 Connection established
    
    HTTP/1.1 301 Moved Permanently
    Date: Mon, DD MMM YYYY HH:MM:SS GMT
    Server: Apache
    Location: https://www.broadcom.com/
    Content-Type: text/html; charset=iso-8859-1
    
  • Because external outbound traffic via the proxy works correctly, the GUI configuration failure is isolated to the proxy validation process itself.

Environment

Non-Internet connected vCenter Server Appliance which accesses dl.broadcom.com via a strict proxy server.

Cause

Reverse connections are being blocked by a strict proxy such as squid, which manages access through ACLs for specific URLs. (i.e. vCenter cannot connect back to its own IP), and the firewall is blocking the proxy from sending the traffic back to vCenter.

Resolution

  • Adjust the configuration file on the proxy to allow the vCenter to connect back to its own IP address.
    • For example, for squid, this would be  /etc/squid/squid.conf
    • If any questions regarding the exact settings, contact the proxy server vendor.
  • Allow the proxy to connect back to vCenter in the firewall configuration.

Additional Information

See Troubleshoot problems with vSphere Lifecycle Manager proxy configuration for more information on proxies and vLCM.