FastNetMon community CLI and API

The current version of FastNetMon Community includes a basic command-line interface and gRPC-based API.

If you’re looking for a comprehensive API, we recommend our commercial edition FastNetMon Advanced, which includes REST based HTTP API for all operations.

Enable API in configuration file /etc/fastnetmon.conf:

enable_api = on

You could ban IP in the following way:

/opt/fastnetmon/fastnetmon_api_client ban 192.168.1.1

You could unban IP in the following:

/opt/fastnetmon/fastnetmon_api_client unban 192.168.1.1

You can check for a list of blocked hosts in the following way:

/opt/fastnetmon/fastnetmon_api_client get_banlist

Sample output:

192.168.1.1/32