1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-05-23 21:36:11 +02:00
fastnetmon-rewritten/docs/API.md
2017-12-03 21:36:56 +00:00

661 B

We have API built on top of gRPC framework

It's very-very developer feature and we do not support it right now. You could use instructions from GoBGP integration and enable it.

Enable API in configuration file:

# Enable gRPC api (required for fastnetmon_api_client tool)
enable_api = on

You could ban IP:

/opt/fastnetmon/fastnetmon_api_client ban 192.168.1.1

You could unban IP:

/opt/fastnetmon/fastnetmon_api_client unban 192.168.1.1

You could check banlist:

/opt/fastnetmon/fastnetmon_api_client get_banlist

Sample output:

192.168.1.1/32