Itential Automation Gateway (IAG) supports routing connections to Gateway Manager through HTTP/HTTPS proxy servers. This is useful in enterprise environments where direct internet access is restricted and all outbound connections must go through a corporate proxy.
When you enable proxy support, IAG establishes a secure WebSocket connection (wss://) to Gateway Manager through your configured proxy server using the HTTP CONNECT tunneling method. IAG establishes the TLS connection after the proxy tunnel, which ensures end-to-end encryption.
This topic covers the connect proxy, which routes IAG’s outbound control-plane connection to Gateway Manager. This is separate from the per-request proxy used for integration HTTP requests, which is configured in Admin Essentials. For more information, see Gateway configuration.
You can configure proxy settings using three methods, listed here in order of precedence:
Set the following environment variables:
For more information, see Connect variables.
Add proxy settings to your IAG configuration file (~/.gateway.d/gateway.conf or /etc/gateway/gateway.conf):
If you don’t provide explicit proxy configuration, IAG checks the standard system proxy environment variables:
IAG checks HTTPS_PROXY first because it uses secure WebSocket connections (wss://).
IAG supports HTTP Basic Authentication for proxy servers. You can provide credentials in two ways.
Credentials in the URL take precedence over separate username and password settings.
Create /etc/gateway/gateway.conf:
Then start IAG:
If your system already has proxy environment variables configured, IAG uses them automatically:
To verify that IAG loaded your proxy configuration correctly, run:
Look for the connect_proxy_url field in the output. The output displays the proxy username but redacts the password for security.
Issue: IAG fails to connect to Gateway Manager.
Steps to diagnose:
Verify that the proxy server is reachable:
Check the IAG logs for proxy-related errors:
To rule out TLS certificate issues, temporarily enable insecure TLS:
Issue: You see an error message that mentions “407 Proxy Authentication Required.”
Steps to resolve:
http://user:pass@proxy:8080.Issue: You see an error message that mentions “403 Forbidden” or “connection refused.”
Possible causes:
Steps to resolve:
Issue: You see certificate verification errors.
IAG validates the Gateway Manager certificate, not the proxy certificate. The proxy acts as a transparent tunnel for the TLS connection.
Steps to resolve:
GATEWAY_APPLICATION_CA_CERTIFICATE_FILE.