Configure Microsoft Defender for Endpoint on Linux for static proxy discovery
In brief
The documentation now explains proxy handling for Linux package managers, distinguishes global settings from command-only settings, and clarifies runtime proxy configuration through the mdatp CLI or managed JSON configuration.
What Defender admins need to know
Administrators can more easily choose the appropriate proxy scope and deployment method for Defender for Endpoint on Linux.
Summaries are generated from the documentation change itself.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
Configure Microsoft Defender for Endpoint on Linux for static proxy discovery
Configure static proxy discovery during installation
During installation, the HTTPS_PROXY environment variable must be passed to the Linux package manager.manager (such as APT, YUM, or Zypper) that installs the Defender for Endpoint package. The package manager reads this variable so it can read thisdownload packages through the specified proxy. You can configure the variable in any of the following ways:
The
HTTPS_PROXYvariable is defined in/etc/environmentwith the followingline:line. This sets the proxy globally so that all processes, including the package manager, can route traffic through the specified proxy server:HTTPS_PROXY="http://proxy.server:port/"The
HTTPS_PROXYvariable is defined in the package manager global configuration. This setting routes package downloads through the specified HTTPS proxy during installation. For example, in Ubuntu 18.04, you can add the following line to/etc/apt/apt.conf.d/proxy.conf:Acquire::https::Proxy "http://proxy.server:port/";
The
HTTPS_PROXYvariable is prepended to the installation or uninstallation commands. This approach applies the proxy setting only for that single command invocation without affecting other applications. For example, with the APT package manager, prepend the variable as follows when installing Microsoft Defender for Endpoint:HTTPS_PROXY="http://proxy.server:port/" apt install mdatp
Method 1: Configure static proxy discovery using the mdatp command-line tool
Run the following command on the endpoint to configure proxy forset the Defender for Endpoint.Endpoint runtime proxy through the mdatp CLI, enabling ongoing cloud connectivity through the specified proxy server.
mdatp config proxy set --value http://address:port
<a name="2-using-managed-configuration"></a>
### Method 2: Configure static proxy discovery using managed configuration
Set the proxy in the managed configuration at `/etc/opt/microsoft/mdatp/managed/mdatp_managed.json`. This approach is ansuited for centrally managed deployments where a management tool distributes the configuration file. The following example ofshows the json schema:JSON schema for setting the cloud service proxy:
```json
{
}
A management tool of choice can be used to deploy the managed configuration in /etc/opt/microsoft/mdatp/managed/mdatp_managed.json. Please checkFor details about the managed configuration file format and deployment, see Set preferences for Microsoft Defender for Endpoint on Linux for more details on managed configuration..
@@ -12,13 +12,13 @@ ms.collection: - mde-linux ms.topic: how-to ms.subservice: linux-ms.date: 06/17/2026+ms.date: 07/02/2026 appliesto: - Microsoft Defender for Endpoint Plan 1 - Microsoft Defender for Endpoint Plan 2 ai-usage: ai-assisted-ms.custom: msecd-doc-authoring-1014+ms.custom: msecd-doc-authoring-1016 --- # Configure Microsoft Defender for Endpoint on Linux for static proxy discovery @@ -28,24 +28,24 @@ Microsoft Defender for Endpoint can discover a proxy server using the `HTTPS_PRO <a name="installation-time-configuration"></a> ## Configure static proxy discovery during installation -During installation, the `HTTPS_PROXY` environment variable must be passed to the package manager. The package manager can read this variable in any of the following ways:+During installation, the `HTTPS_PROXY` environment variable must be passed to the Linux package manager (such as APT, YUM, or Zypper) that installs the Defender for Endpoint package. The package manager reads this variable so it can download packages through the specified proxy. You can configure the variable in any of the following ways: -- The `HTTPS_PROXY` variable is defined in `/etc/environment` with the following line:+- The `HTTPS_PROXY` variable is defined in `/etc/environment` with the following line. This sets the proxy globally so that all processes, including the package manager, can route traffic through the specified proxy server: ```bash HTTPS_PROXY="http://proxy.server:port/" ``` -- The `HTTPS_PROXY` variable is defined in the package manager global configuration. For example, in Ubuntu 18.04, you can add the following line to `/etc/apt/apt.conf.d/proxy.conf`:+- The `HTTPS_PROXY` variable is defined in the package manager global configuration. This setting routes package downloads through the specified HTTPS proxy during installation. For example, in Ubuntu 18.04, you can add the following line to `/etc/apt/apt.conf.d/proxy.conf`: ```bash Acquire::https::Proxy "http://proxy.server:port/"; ``` > [!CAUTION]- > The above two methods could define the proxy to use for other applications on your system. Use this method with caution, or only if this is meant to be a global configuration.+ > Defining `HTTPS_PROXY` in `/etc/environment` or in the package manager global configuration could define the proxy for other applications on your system. Use either of these methods with caution, and only if you intend the proxy setting to be global. -- The `HTTPS_PROXY` variable is prepended to the installation or uninstallation commands. For example, with the APT package manager, prepend the variable as follows when installing Microsoft Defender for Endpoint:+- The `HTTPS_PROXY` variable is prepended to the installation or uninstallation commands. This approach applies the proxy setting only for that single command invocation without affecting other applications. For example, with the APT package manager, prepend the variable as follows when installing Microsoft Defender for Endpoint: ```bash HTTPS_PROXY="http://proxy.server:port/" apt install mdatp@@ -66,7 +66,7 @@ After installation, configure Defender for Endpoint with a static proxy. You can <a name="1-using-mdatp-command-line-tool"></a> ### Method 1: Configure static proxy discovery using the mdatp command-line tool -Run the following command on the endpoint to configure proxy for Defender for Endpoint.+Run the following command on the endpoint to set the Defender for Endpoint runtime proxy through the `mdatp` CLI, enabling ongoing cloud connectivity through the specified proxy server. ```bash mdatp config proxy set --value http://address:port@@ -75,7 +75,7 @@ mdatp config proxy set --value http://address:port <a name="2-using-managed-configuration"></a> ### Method 2: Configure static proxy discovery using managed configuration -Set the proxy in the managed configuration at `/etc/opt/microsoft/mdatp/managed/mdatp_managed.json`. This is an example of the json schema:+Set the proxy in the managed configuration at `/etc/opt/microsoft/mdatp/managed/mdatp_managed.json`. This approach is suited for centrally managed deployments where a management tool distributes the configuration file. The following example shows the JSON schema for setting the cloud service proxy: ```json {@@ -85,7 +85,7 @@ Set the proxy in the managed configuration at `/etc/opt/microsoft/mdatp/managed/ } ``` -A management tool of choice can be used to deploy the managed configuration in `/etc/opt/microsoft/mdatp/managed/mdatp_managed.json`. Please check [Set preferences for Microsoft Defender for Endpoint on Linux](./linux-preferences.md) for more details on managed configuration.+A management tool of choice can be used to deploy the managed configuration in `/etc/opt/microsoft/mdatp/managed/mdatp_managed.json`. For details about the managed configuration file format and deployment, see [Set preferences for Microsoft Defender for Endpoint on Linux](./linux-preferences.md). 