Skip to content

Proxy Configuration for Anyware Manager

Enable Proxy Configurating for Installation

If HTTP/HTTPS proxy is used, then HTTP_PROXY, HTTPS_PROXY and NO_PROXY must be set. For NO_PROXY, specific IP addresses or domain names of service that are internal must be added. IP address ranges like "10.0.0.0/8" does not work; exact IP addresses or domain names must be used for NO_PROXY for the traffic to be routed through the proxy to work properly. The outlined variables need to be set in the /etc/environment file.

The following steps outline how to modify this file to add these variables:

  1. Run the following command to edit the /etc/environment/ file in vi. You could also use vim or nano:
    sudo vi /etc/environment
    
  2. Update the file to include the following environment variables.
    HTTPS_PROXY="http://hostname_of_proxy:port"
    HTTP_PROXY="http://hostname_of_proxy:port"
    NO_PROXY=[list of all host names that should not go through the proxy, such as: localhost, 127.0.0.1, 0.0.0.0, ip_address_of_mongo]
    ALL_PROXY="http://hostname_of_proxy:port"
    https_proxy="http://hostname_of_proxy:port"
    http_proxy="http://hostname_of_proxy:port"
    no_proxy==[list of all host names that should not go through the proxy, such as: localhost, 127.0.0.1, 0.0.0.0, ip_address_of_mongo]
    all_proxy="http://hostname_of_proxy:port"
    
  3. Save the file. Once you install Anyware Manager you can configure it to use the proxy configuration. From this new terminal, proceed with the installation steps. The proxy configuration is implemented when Anyware Manager is installed.

Disable Proxy Configuration

Once all installations and configurations are done, If Anyware Manager run into issues related to proxy, you can disable proxy on the Anyware Manager server to confirm if that's the cause. To disable proxy:

  1. Check the proxy settings saved in the cluster:
    sudo /usr/local/bin/kubectl edit secret proxysettings -o yaml
    
  2. Look for strings such as HTTP_PROXY, HTTPS_PROXY, NO_PROXY.

  3. Press the letter "i" to edit the keys to set them to empty string by doing the following:

    HTTP_PROXY: ""
    HTTPS_PROXY: ""
    NO_PROXY: ""
    
    if you do not see one of those strings change the rest to empty string "".

  4. Save the new configuration by pressing "ESC" then ":" then "wq".