LM Installation and Configuration
The LM package is distributed through a dedicated, password-protected repository that is not enabled by default. Please read the section below to enable it.
Ubuntu/Debian LM Installation
On the host that will run the LM server, install the ntop repository as described on packages.ntop.org.
The file /etc/apt/sources.list.d/ntop-lm.list is installed with the LM repository commented out. Below you can see examples for Ubuntu 24.04 LTS:
$ cat /etc/apt/sources.list.d/ntop-lm.list
# If you want to use the license manager uncomment the line below
# and read https://www.ntop.org/guides/license/installation.html
#deb [signed-by=/usr/share/keyrings/ntop-archive-keyring.gpg] https://packages.ntop.org/apt-lm/24.04/ x64/
To enable it (as root) do:
Uncomment the
`deb`line.Edit
/etc/apt/auth.conf(or create if not existing) and add a linemachine packages.ntop.org/apt-lm/24.04/ login YOUR_USERNAME password YOUR_PASSWORDwhere you replace YOUR_USERNAME and YOUR_PASSWORD with the credentials you have received from ntop.chmod 600 /etc/apt/auth.confandchown root:root /etc/apt/auth.conf
apt-get update
apt-get install ntop-license-manager
The package installs the LM as a service.
Rocky/RedHat-based Distributions LM Installation
On the host that will run the LM server, install the ntop repository as follows:
curl https://packages.ntop.org/centos-lm/ntop-lm.repo > /etc/yum.repos.d/ntop-lm.repo (Nightly)
or
curl https://packages.ntop.org/centos-stable-lm/ntop-stable-lm.repo > /etc/yum.repos.d/ntops-stable-lm.repo (Stable)
Then edit the installed files replacing YOUR_USERNAME and YOUR_PASSWORD with the credentials you have received from ntop.
LM Client File
Note
The licensemgr.bin is per organization and not per host, so all the hosts belonging to the same compnay using the LM will use the same licensemgr.bin file
In addition to the LM licenses, each customer receives from ntop a client file named `licensemgr.bin` that is specific to the company/customer using the LM.
This file must be installed as /etc/licensemgr.bin on every host running an ntop application that validates its license with the LM (i.e. started with `--license-mgr`).
If the file is missing or invalid, the application is not able to use the LM. When the file is correctly installed, the application logs at startup the customer the file is licensed to:
This LM client is licensed to: My Company
Windows
ntop applications running on Windows can use the LM as clients and validate their licenses. The LM server instead cannot run on Windows: it must be installed on a Linux host.
On Windows, the `licensemgr.bin` client file must be placed in the working directory of the application.
Configuration
The LM configuration files are stored in /usr/share/ntop/etc/. Namely
license-manager.conf is the LM configuration file
cert.pem and key.pem as the files used by the LM to setup the TLS communications used by the applications to talk with the LM
The license files managed by the LM are instead installed in /etc/ntop/license_manager/ as individual files. Example: /etc/ntop/license_manager/nprobe.license.enterprise_m
LM Configuration File
The LM configuration file (/usr/share/ntop/etc/license-manager.conf) has the following format:
#
# Listening IP:port (default: 0.0.0.0:7153)
#
--listen=0.0.0.0:7153
#
# Web listening IP:port (Default: 127.0.0.1:4444)
#
--web=0.0.0.0:4444
#
# User authentication tokens file (optional, no authentication by default)
#
#--auth-tokens=/usr/share/ntop/etc/auth_tokens.conf
#
# License leases log file (log all licenses allocated/released)
#
--lease-log=/var/log/ntop-license-manager-leases.log
#
# Verbose logs (debug)
#
--verbose
Where:
The user authentication tokens file is a file contains authentication tokens, one per line, used to authenticate the applications (see AUTH_TOKEN in the application configuration file below)
The license leases log file is used to dump the history of licenses allocated for the applications and when they are freed.
Sample user authentication tokens file (e.g. whose path can be /usr/share/ntop/etc/auth_tokens.conf) containing 3 tokens:
OKR8OTKWZX1K1RPWKW9B3CLYYJGPA1Q9EECDDE011E4GUX4UEWKJY5YEEK1Y55TB
Z6L0F0LS1O3ZK5PZBMEW0AFTDUK4V8AFZ7JW61G70XU39OOVIGLRPDZW8K9DUBE1
3FDEP7U38LCPGBSRY3KVMDRMLM2LFWKO9T7EY4VYSSV75JP1B25V2QYZVT7IH1JF
TLS Configuration
Applications talk with the LM over TLS. The LM package comes with a self-signed certificate. You can use your own CA for generating the licenses or you can generate them with OpenSSL as follows
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365
Starting/Stopping the Service
The LM is managed as a standard Linux service as follows:
service ntop-license-manager start
service ntop-license-manager stop
service ntop-license-manager restart
All commands need to be executed as superuser (root).
nProbe and ntopng Configuration for Using the LM
nProbe and ntopng are currently the only applications that can use the LM. Such applications validate their licenses with the LM by specifying `--license-mgr <conf file>`.
This configuration file (example under /usr/share/ntop/etc/license-manager-client.conf) has the following format:
#
# IP and port of the license manager
#
LICENSE_MANAGER=127.0.0.1:7153
#
# Unique instance name
#
INSTANCE_NAME=example
#
# User authentication token (optional)
#
AUTH_TOKEN=OKR8OTKWZX1K1RPWKW9B3CLYYJGPA1Q9EECDDE011E4GUX4UEWKJY5YEEK1Y55TB
#
# nprobe ntopng
#
PRODUCT_FAMILY=nprobe
#
# pro enterprise_s enterprise_m enterprise_l enterprise_xl
#
PRODUCT_EDITION=enterprise_m
Where:
LICENSE_MANAGER is the IP and port of the host where the LM is running. If you want you can define a secondary license manager by adding a secondary address and port. Example: LICENSE_MANAGER=127.0.0.1:7153,192.168.1.23:7728. Note that if you use two license manager instances installed on two different hosts, you need two different set of licenses.
INSTANCE_NAME is a string used to indetity this specific instance
AUTH_TOKEN is a token that the LM can use to prevent issuing valid licenses for unknown AUTH_TOKEN. Its value must be configured in the LM.
PRODUCT_FAMILY and PRODUCT_EDITION define what license the ntop application will as the LM when contacting it.
Accepted PRODUCT_FAMILY values are `nprobe`, `ntopng`, `n2disk`, `cento`.
Accepted PRODUCT_EDITION values per product:
nprobe:
`pro`,`enterprise_s`,`enterprise_m`,`enterprise_l`,`enterprise_xl`ntopng:
`pro`,`enterprise_m`,`enterprise_l`,`enterprise_xl`,`enterprise_xxl`n2disk:
`1g`,`5g`,`19g`cento:
`s`,`m`,`l`,`xl`,`xxl`
For more information about using the LM with ntop applications see: