Proxy Configuration Steps

:The following are the steps to configure a Linux Cloud Agent to use a proxy while communicating with the Qualys Cloud Platform.

  1. Create a /etc/sysconfig/Qualys-cloud-agent file if it does not exist.
  2. Add one of the following proxy configuration URLs to the above file:
    https_proxy=https://[<username>:<password>@]<host>[:<port>]

    qualys_https_proxy=https://[<username>:<password>@]<host>[:<port>]

    Where, 
    <host>  is the IPv4 address or FQDN for the proxy server, and
    <port> is the proxy port number. 

    Provide the <username> and <password> in the proxy configuration URL if the https proxy uses authentication. If the <username> or <password> contains special characters (for example, @, :, $), it must be URL encoded.

    If the proxy is specified with the https_proxy environment variable, it will be used for all commands performed by the Cloud Agent.  If the proxy is specified with the qualys_https_proxy environment variable, it is used only for communicating with the Qualys Cloud Platform.

    You can encrypt the proxy username and password using Proxy Encryption Utility. Refer to Proxy Encryption Utility for more information about encrypting username and password.
  3. Change the proxy permissions using the following commands:
    For Linux (.rpm)
    chown <cloud_agent_user> /etc/sysconfig/qualys-cloud-agent
    chmod 600 /etc/sysconfig/qualys-cloud-agent

     

    For Linux (.deb)
    chown <cloud_agent_user> /etc/default/qualys-cloud-agent
    chmod 600 /etc/default/qualys-cloud-agent


    Where <cloud_agent_user> is a user configured through the Configuration Tool.

  4. Restart the Qualys Cloud Agent using the following command
    service qualys-cloud-agent restart