Proxy Support for Agents
Proxy support for Linux and Windows Agents are now available with Ivanti Neurons Platform.
Proxy for Linux Agents

Adding a Proxy
To add a new proxy server, enter
stagentctl proxy --add http://host:port
Only HTTP proxies without credentials are supported.
Listing Configured Proxies
To display all configured proxies and exclusions, enter
stagentctl proxy --list
Removing a Proxy
-
To remove a specific proxy from the configuration, enter
stagentctl proxy --remove http://host:port -
To remove all configured proxies, enter
stagentctl proxy --remove all -
Command returns a configuration state after execution
If the result is 'No proxy configured' it means that after command execution there are no proxies left.
Managing Proxy Exclusion
-
To manage hosts that should be accessed without a proxy for exact hostname exclusion, enter
stagentctl proxy --addexclusion host.com -
To disable the proxy completely for suffix match exclusion, enter
stagentctl proxy --addexclusion .org -
To disable the proxy entirely, enter
stagentctl proxy --addexclusion -
To remove an exclusion, enter
stagentctl proxy --removeexclusion host.com -
To clear all exclusions, enter
stagentctl proxy --removeexclusion all
Registering with Proxy Configuration
-
When registering the agent, add --addproxy parameter such as
stagentctl register --addproxy http://host:port.
This proxy is used for the registration and saved for use in future communications.
-
Additionally, at the moment of registration, configuration is gathered from http_proxy or HTTP_PROXY environment variables and saved.
-
It is also possible to add proxies and exclusions with proxy --add and proxy --addexclusion commands before registration attempt.
Important Notes
-
The application does not automatically utilize proxies defined in environment variables, except during the registration request.
-
A list of proxies is supported. In case of connection failure, the next proxy in the list is tried, eventually attempting a connection without a proxy. The application cycles back to the first proxy after exhausting all options or when a timeout occurs, prioritizing the initial entries.
-
The register --addproxy command adds a proxy to the top of the list, giving priority to the provided proxy.
-
Proxies gathered from environment variables are added to the end of the proxy list.
-
http_proxy and HTTP_PROXY are used for proxy configuration (the first available is used)
Security and Communication
The application ensures that all communication via proxies is securely tunneled using the CONNECT method, suitable for encrypted communications where the proxy only acts as a tunnel provider. All proxy configurations are validated to ensure the use of the HTTP scheme without credentials and may include a port number.
Proxy for Windows Agents

-
User experience with Windows Proxy settings after registration
The registration log contains messages about proxy settings that were used and if the proxy settings were saved. This allows users to confirm the proxy settings that were used during a registration, especially in the case of troubleshooting a failed registration. There are no behavioral changes with respect to proxies used during registration.
One of the three following messages appears in the RegistrationLog.txt
-
"Using custom proxy settings with proxyServer='...', bypassList='...', and authentication=...."
Custom proxy mode settings were given for registration. These are the settings used during registration. If a username was given for proxy then authentication is also used indicated by the value authentication=1.
-
"Using automatic proxy detection with authentication=..."
Proxy mode is set to auto detect for registration. If a username was given for proxy then authentication is also used indicated by the value authentication=1.
-
"Not using a proxy for network communication."
Proxy mode was set to none.
All successful registrations indicate that proxy settings used during registration were saved as indicated by the line "Proxy settings used during registration were saved.".
A failed registration will not retain any proxy settings as indicated by the line "Proxy settings used during registration were not saved."
-
-
A new flag for Agent to opt-out of WinHTTP setting
The Agent has a new flag to opt-out of setting WinHTTP during a Windows Agent Registration. Using this flag to opt-out of setting WinHTTP requires the customer to manage their Certificate Revocation Lists (CRL) on their own in order to prevent degraded performance over time. Customers who do not need to opt-out of this behavior, or are unprepared to manage their own CRL do not need to take any action.
This "update WinHTTP Proxy" flag may be used to opt-out of the default behavior by adding the following line to the options file:
updateWinHttpProxy=0
where 0 means WinHttpProxy will not be overwritten during registration.