Current version of FastNetMon Community includes basic command line interface and gRPC based API.
Enable API in configuration file /etc/fastnetmon.conf:
enable_api = on
You could ban IP this way:
/opt/fastnetmon/fastnetmon_api_client ban 192.168.1.1
You could unban IP this way:
/opt/fastnetmon/fastnetmon_api_client unban 192.168.1.1
You could check list of blocked hosts this way:
/opt/fastnetmon/fastnetmon_api_client get_banlist
Sample output:
192.168.1.1/32