• Install & Activate
  • Troubleshooting
BEST Antivirus KBS : Largest Anti-Malware Knowlegde Base and Support
  • Install & Activate
  • Troubleshooting

Configure Microsoft Defender for Endpoint on Linux for static proxy discovery

/Download, Install & Active / Microsoft / Download, Install & Active / Microsoft / Microsoft Endpoint / Configure Microsoft Defender for Endpoint on Linux for static proxy discovery
  • December 23, 2021
  • BEST Antivirus Staff 2
  • Microsoft / Microsoft Endpoint

Contents

  1. Installation time configuration
  2. Post installation configuration
    1. Source : Official Microsoft Brand Editor by : BEST Antivirus KBS Team
0
(0)

Microsoft Defender for Endpoint can discover a proxy server using the HTTPS_PROXY environment variable. This setting must be configured both at installation time and after the product has been installed.

Installation time configuration

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:

  • The HTTPS_PROXY variable is defined in /etc/environment with the following line:
    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:
    Bash

    Acquire::https::Proxy "http://proxy.server:port/";
    

     Caution

    Note that 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 generally global configuration.

  • 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:
    Bash

    HTTPS_PROXY="http://proxy.server:port/" apt install mdatp
    

     Note

    Do not add sudo between the environment variable definition and apt, otherwise the variable will not be propagated.

The HTTPS_PROXY environment variable may similarly be defined during uninstallation.

Note that installation and uninstallation will not necessarily fail if a proxy is required but not configured. However, telemetry will not be submitted, and the operation could take much longer due to network timeouts.

Post installation configuration

After installation, the HTTPS_PROXY environment variable must be defined in the Defender for Endpoint service file. To do this, run sudo systemctl edit --full mdatp.service. You can then propagate the variable to the service in one of two ways:

  • Uncomment the line #Environment="HTTPS_PROXY=http://address:port" and specify your static proxy address.
  • Add a line EnvironmentFile=/path/to/env/file. This path can point to /etc/environment or a custom file, either of which needs to add the following line:
    Bash

    HTTPS_PROXY="http://proxy.server:port/"
    

After modifying mdatp.service, save the file and restart the service so the changes can be applied using the following commands:

Bash

sudo systemctl daemon-reload; sudo systemctl restart mdatp


Source : Official Microsoft Brand
Editor by : BEST Antivirus KBS Team

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

(Visited 38 times, 1 visits today)
Tagged: MicrosoftMicrosoft for Endpoint

Related Articles

  • All about Microsoft

  • Overview of Microsoft 365 Lighthouse

  • Microsoft Defender for Business (preview) – Frequently asked questions and answers

  • Get help and support for Microsoft Defender for Business (preview)

  • Manage your custom rules for firewall policies in Microsoft Defender for Business (preview)

  • Firewall in Microsoft Defender for Business (preview)

ask or enter a search term

Top Rated Posts

5 (1)

Identity Protection – Enrolment/Registering (TotalAV)

5 (7)

[KB2885] Download and install ESET offline or install older versions of ESET Windows home products

5 (1)

Base Filtering Engine not found (Kaspersky)

5 (1)

Installing on iPhone & iPad

5 (1)

[KB7857] Set up an HTTPS/SSL connection for ESET PROTECT (8.x) Linux

About

We are BEST Antivirus , Trusted Comparison and Cheap Antivirus Software 2020. KBS is Knowledge Base and Support : This page was created to guide customers through the installation and to resolve all the common errors of anti-virus software.

Partners

› Avast
› AVG
› BitDefender
› ESET
› Trend Micro
› All Partners

Resources

› Store
› Advertise
› Brand Reviews
› Review Platforms
› Contact Page
› Knowledge Base

  • Install & Activate
  • Troubleshooting
© Copyright by BEST Antivirus by SSG Limited