Proxy support - Linux and FreeBSD

The Server Density agent (1.14.0 and up) has native proxy integration.

This article is for our v1 agent and will soon be deprecated.

To configure a proxy, you'll need to edit your config.cfg file and set the proxy URL:

proxy_url: url_to_proxy

Restart the agent after any changes.

Alternatively, you can set the http_proxy environment variable to tell the agent to use a proxy server for all requests. You can set this on a system level which will affect all Python scripts, including the Server Density agent.

On Linux, just edit the /etc/environment file and include this line in it: 


You will need to log out and log back in again to see the effects of changes to this file, which you can check by executing printenv. See this guide for more details about Linux environment variables.

See also our forwarding proxy for servers with no direct internet access.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.