Fortinet white logo
Fortinet white logo

FortiDLP Agent Deployment Guide

Installing the FortiDLP Agent on Linux

Installing the FortiDLP Agent on Linux

You can install the FortiDLP Agent on Linux devices running Red Hat or CentOS by using the RPM installer, or on Linux devices running Ubuntu by using the DEB installer. These installation packages are available for download from the Next DLP Support Portal or the FortiDLP Console's Agent deployment tab.

You must install the FortiDLP Agent on each device you want to monitor.

How to install the FortiDLP Agent on Red Hat
  1. Open a command-line interface with root privileges.
  2. Run the command yum update -y.
  3. Note

    You may need to reboot the device if there is a kernel change.

  4. Install the dependencies:
    1. Run the command dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm.
    2. Run the command yum install "kernel-devel-uname-r == $(uname -r)".
    3. Run the command yum install --enablerepo=epel dkms.
  5. Install the Agent by running the command rpm -Uvh agent-rpm.rpm.

The installation will complete within 1–10 minutes, depending on the number of active kernel versions on the device. The output displayed during this period will indicate the installation progress.

When the installation succeeds, proceed to Enrolling the FortiDLP Agent on Linux.

How to install the FortiDLP Agent on Ubuntu w/Secure Boot disabled
Note

These instructions should be followed if Secure Boot is disabled on the device.

To verify if Secure Boot is disabled, run the command mokutil --sb-state. If it is turned off, SecureBoot disabled will be shown in the message output.

  1. Open a command-line interface with root privileges.
  2. Run the command apt-get update.
  3. Upgrade your system by running the command apt-get upgrade -y.
  4. Note

    You may need to reboot the device if there is a kernel change.

  5. Install the dependencies by running the command apt install ./agent-deb.deb.
  6. Install the Agent by running the command apt-get install -y ./agent-deb.deb.

The installation will complete within 1–10 minutes, depending on the number of active kernel versions on the device. The output displayed during this period will indicate the installation progress.

When the installation succeeds, proceed to Enrolling the FortiDLP Agent on Linux.

How to install the FortiDLP Agent on Ubuntu w/Secure Boot enabled
Note

These instructions should be followed if Secure Boot is enabled on the device.

To verify if Secure Boot is enabled, run the command mokutil --sb-state. If it is turned on, SecureBoot enabled will be shown in the message output.

  1. Open a command-line interface with root privileges.
  2. Verify if DKMS is installed by running the command dkms status.
    • If Command 'dkms' not found is shown in the message output, DKMS is not installed. To install it, run the command apt install dkms.
  3. Verify if the kernel headers are installed:
    1. To view the current kernel version, run the command uname -r.
    2. To check if kernel headers are installed for this current kernel version, run the command
      apt list linux-headers-$(uname -r).
      • If the message output does not include [installed, local], kernel headers are not installed. To install them, run the command apt-get install linux-headers-$(uname -r).
  4. Run the command apt-get update.
  5. Upgrade your system by running apt-get upgrade -y.
  6. Note

    You may need to reboot the device if there is a kernel change.

  7. Navigate to the directory the DEB installer was downloaded to.
  8. Install the dependencies by running the command apt install ./agent-deb.deb.
    The installation will complete within 1–10 minutes, depending on the number of active kernel versions on the device. The output displayed during this period will indicate the installation progress.
  9. In the Configuring Secure Boot dialog box:
    1. Select OK.
    2. Enter a password.
    3. Select OK.
    4. Re-enter the password.
    5. Select OK.
  10. Reboot the device.
  11. In the Perform MOK management dialog box:
    1. Press any key.
    2. Select Enroll MOK.
    3. Select Continue.
    4. Select Yes.
    5. Enter your password from step 8b.
    6. Select Reboot.

When the installation succeeds, proceed to Enrolling the FortiDLP Agent on Linux.

Installing the FortiDLP Agent on Linux

Installing the FortiDLP Agent on Linux

You can install the FortiDLP Agent on Linux devices running Red Hat or CentOS by using the RPM installer, or on Linux devices running Ubuntu by using the DEB installer. These installation packages are available for download from the Next DLP Support Portal or the FortiDLP Console's Agent deployment tab.

You must install the FortiDLP Agent on each device you want to monitor.

How to install the FortiDLP Agent on Red Hat
  1. Open a command-line interface with root privileges.
  2. Run the command yum update -y.
  3. Note

    You may need to reboot the device if there is a kernel change.

  4. Install the dependencies:
    1. Run the command dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm.
    2. Run the command yum install "kernel-devel-uname-r == $(uname -r)".
    3. Run the command yum install --enablerepo=epel dkms.
  5. Install the Agent by running the command rpm -Uvh agent-rpm.rpm.

The installation will complete within 1–10 minutes, depending on the number of active kernel versions on the device. The output displayed during this period will indicate the installation progress.

When the installation succeeds, proceed to Enrolling the FortiDLP Agent on Linux.

How to install the FortiDLP Agent on Ubuntu w/Secure Boot disabled
Note

These instructions should be followed if Secure Boot is disabled on the device.

To verify if Secure Boot is disabled, run the command mokutil --sb-state. If it is turned off, SecureBoot disabled will be shown in the message output.

  1. Open a command-line interface with root privileges.
  2. Run the command apt-get update.
  3. Upgrade your system by running the command apt-get upgrade -y.
  4. Note

    You may need to reboot the device if there is a kernel change.

  5. Install the dependencies by running the command apt install ./agent-deb.deb.
  6. Install the Agent by running the command apt-get install -y ./agent-deb.deb.

The installation will complete within 1–10 minutes, depending on the number of active kernel versions on the device. The output displayed during this period will indicate the installation progress.

When the installation succeeds, proceed to Enrolling the FortiDLP Agent on Linux.

How to install the FortiDLP Agent on Ubuntu w/Secure Boot enabled
Note

These instructions should be followed if Secure Boot is enabled on the device.

To verify if Secure Boot is enabled, run the command mokutil --sb-state. If it is turned on, SecureBoot enabled will be shown in the message output.

  1. Open a command-line interface with root privileges.
  2. Verify if DKMS is installed by running the command dkms status.
    • If Command 'dkms' not found is shown in the message output, DKMS is not installed. To install it, run the command apt install dkms.
  3. Verify if the kernel headers are installed:
    1. To view the current kernel version, run the command uname -r.
    2. To check if kernel headers are installed for this current kernel version, run the command
      apt list linux-headers-$(uname -r).
      • If the message output does not include [installed, local], kernel headers are not installed. To install them, run the command apt-get install linux-headers-$(uname -r).
  4. Run the command apt-get update.
  5. Upgrade your system by running apt-get upgrade -y.
  6. Note

    You may need to reboot the device if there is a kernel change.

  7. Navigate to the directory the DEB installer was downloaded to.
  8. Install the dependencies by running the command apt install ./agent-deb.deb.
    The installation will complete within 1–10 minutes, depending on the number of active kernel versions on the device. The output displayed during this period will indicate the installation progress.
  9. In the Configuring Secure Boot dialog box:
    1. Select OK.
    2. Enter a password.
    3. Select OK.
    4. Re-enter the password.
    5. Select OK.
  10. Reboot the device.
  11. In the Perform MOK management dialog box:
    1. Press any key.
    2. Select Enroll MOK.
    3. Select Continue.
    4. Select Yes.
    5. Enter your password from step 8b.
    6. Select Reboot.

When the installation succeeds, proceed to Enrolling the FortiDLP Agent on Linux.