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 10.0.0.2 with port 3128. The network is then configured to only allow traffic outbound from 10.0.0.2 and not directly from the client.

proxy-server-config.png

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=http://10.0.0.1:3128 and export HTTPS_PROXY=http://10.0.0.1:3128 replacing 10.0.0.1:3128 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.

  1. Begin by editing either the file /etc/profile or creating a file /etc/profile.d/automox.sh.

    linux-edit-profile.png

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

    linux-apend-export.png

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

    linux-run-echo.png

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.

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

    client-config-windows.png
  2. Click System.

    system-security.png
  3. Click Advanced System Settings.

    advanced-system-settings.png
  4. Click Environment Variables.

    win-environ-var.png

  5. Under System variables, click New.

    system-var-new.png
  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.

      win-system-var.png

  7. Repeat steps 5 and 6 for the AUTOMOX_PROXY, HTTPS_PROXY, and HTTP_PROXY variables. NOTE Be sure to leave the protocol as http, leaving out the "s", for HTTP_PROXY.

  8. Click OK.

    win-sysvar-ok.png

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.

Related Topics

Was this article helpful?
0 out of 0 found this helpful