If a proxy is configured for access to IP addresses outside a customer estate then the appliance must be configured to make use of this proxy.
This configuration must be done in two stages.
Normal Data Flow to SAAS via Proxy
In order to use an appliance via an HTTP proxy, the following configuration should be completed:
- Open an SSH connection to your appliance.
- Navigate to the communication server folder and edit the http-proxy.conf file
% sudo vi /opt/docker/http-proxy.conf
- Enter/Update the following values in the file:
PROXY_ENABLED=true
PROXY_HOSTNAME=__PROXY_HOSTNAME__
PROXY_PORT=8080
PROXY_USERNAME=
PROXY_PASSWORD=
- Save the file.
- If the appliance was registered prior to this configuration change, then the following commands should be run after the config file has been updated and saved.
% sudo /opt/docker/start-appliance-stack.sh
Appliance Upgrade Operations via Proxy
In order to allow appliance upgrade via an HTTP proxy, the following configuration should be completed:
- Open an SSH connection to your appliance.
- Execute the following commands to update the docker proxy configuration
- Provide a simple means to set the values for a HTTP proxy and a HTTPS proxy endpoint. Please note, the value for HTTPS_PROXY should always be set. It should point to the
https://
defined endpoint where one is available, otherwise, it should be defaulted to thehttp://
defined endpoint. Then, provide an appropriate IP address and port for your system configuration. The following example shows a configuration where the HTTPS endpoint is not available so the HTTPS_PROXY value point to the “http://” URL.- % export HTTP_PROXY="http://<ip>:<port>"
- % export HTTPS_PROXY="http://<ip>:<port>"
- If authentication is required for the proxy then this can also be configured by specifying the username and password as part of the URL.
- % export HTTP_PROXY="http://<username>:<password>@<ip>:<port>"
- % export HTTPS_PROXY="http://<username>:<password>@<ip>:<port>"
- Execute the following command to create a new configuration file (http-proxy.conf) using the environment variables previously defined.
- % sudo tee /etc/systemd/system/docker.service.d/http-proxy.conf > /dev/null <<EOF
- [Service]
- Environment="HTTP_PROXY=$HTTP_PROXY"
- Environment="HTTPS_PROXY=$HTTPS_PROXY"
- EOF
- Restart appliance services to pick up new configuration
- % sudo systemctl daemon-reload
- % sudo systemctl restart docker.service
- You can check if the docker environment has picked up the new configuration by executing the following command. If correctly configured, the environment variable will be displayed.
- % sudo systemctl show docker --property Environment
- Environment=HTTP_PROXY=http://10.46.4.5:3128 HTTPS_PROXY=http://10.46.4.5:3128
- The update process can now be triggered from the CAM UI.
- Provide a simple means to set the values for a HTTP proxy and a HTTPS proxy endpoint. Please note, the value for HTTPS_PROXY should always be set. It should point to the
Note: This will change once we start configuring proxy via Appliance or CAM UI.