Using the Automox Agent With a Proxy Server

How to configure a device that uses a proxy server.

Proxy Server Configurations

Many organizations use a proxy server to manage and monitor internet traffic. A proxy server acts as an intermediary between a client and the external network. Popular proxy servers include ProxySG and Squid, among others.

There are two typical configurations: caching and transparent. The most common is a caching proxy. A caching proxy requires that the client is configured to use the proxy. This can be done through DHCP or manual configuration. As an example, the web proxy for a client is set to with port 3128. The network is then configured to only allow traffic outbound from and not directly from the client.

proxy server

In a transparent proxy, the client does not need to know about the proxy server. It most often runs in line with the router. No client-side configuration is needed.

Proxy Evaluation Order

If the proxy is set, an attempt is made to use it. If it is unreachable, the next proxy is checked. 

The order of proxy evaluation by Automox is as follows:

  1. AUTOMOX_PROXY/automox_proxy
  2. HTTPS_PROXY/https_proxy
  3. HTTP_PROXY/http_proxy 
  4. Windows Only: IE Proxy (Dynamic via PAC file)
  5. Windows Only: IE Proxy (Static)
  6. Direct

Note: The agent runs as a local system. The proxy settings must be configured at the system level, not the user level.

Follow the examples for configuring the environment variables.

Automox Client Configuration - Linux

The Automox client needs one of the previously mentioned proxy settings configured. For example, if you are using HTTP_PROXY  and HTTPS_PROXY, these can be set in your current session using export HTTP_PROXY= and export HTTPS_PROXY= replacing with your proxy server address and port. However, since the Automox agent will run automatically at startup, the best practice is to ensure that this is set globally in the file /etc/profile .

Step 1. Begin by editing the file /etc/profile .

edit etc profile

Step 2. Append export HTTP_PROXY=http://yourProxyServer:yourProxyPort  and export HTTPS_PROXY=http://yourProxyServer:yourProxyPort .

step 2 append

Step 3. To verify the setting, you can log out of your session, log in again, and run echo $HTTP_PROXY  or echo $HTTPS_PROXY .

verify setting

Automox Client Configuration – Windows

The Automox client requires that a system environment variable is set. This is not a profile environment variable but rather a system environment variable. For Windows clients, Automox supports the use of PAC files for proxy deployments and will attempt to use your IE proxy settings.

Step 1. In the Control Panel, click System and Security.

control panel system and security

Step 2. Click System.

system and security

Step 3. Click Advanced System Settings

advanced system settings

Step 4. Click Environment Variables.

Step 5. Under System variables, click New.

system variables new

Step 6. As an example, you can configure variables as follows: 

  • For Variable name enter: HTTP_PROXY 
  • For Variable value enter: the IP/Name of your proxy server and port. 
  • Click OK.

new system variable

Step 7. Click OK.

system variables

Step 8. In the example, you would complete the same steps for HTTPS_PROXY. Be sure to leave the protocol as http. leaving out the "s."

Your Automox Agent is now configured to use your proxy server.

You can automate setting the proxy by using a worklet. Refer to Creating a Worklet and our Automox Community for examples of creating and applying worklets.