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.
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:
AUTOMOX_PROXY/automox_proxy
HTTPS_PROXY/https_proxy
HTTP_PROXY/http_proxy
Windows Only: IE Proxy (Dynamic via PAC file)
Windows Only: IE Proxy (Static)
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
.
Begin by editing either the file
/etc/profile
or creating a file/etc/profile.d/automox.sh
.Append
export AUTOMOX_PROXY=http://yourProxyServer:yourProxyPort
,export HTTP_PROXY=http://yourProxyServer:yourProxyPort
andexport HTTPS_PROXY=http://yourProxyServer:yourProxyPort
.To verify the setting, you can log out of your session, log in again, and run
echo $AUTOMOX_PROXY
,echo $HTTP_PROXY
orecho $HTTPS_PROXY
.
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.
In the Control Panel, click System and Security.
Click System.
Click Advanced System Settings.
Click Environment Variables.
Under System variables, click New.
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.
Repeat steps 5 and 6 for the
AUTOMOX_PROXY
,HTTPS_PROXY
, andHTTP_PROXY
variables. NOTE Be sure to leave the protocol as http, leaving out the "s", forHTTP_PROXY
.Click OK.
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.