1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-09-26 13:50:43 +02:00
fastnetmon-rewritten/docs/API.md

29 lines
476 B
Markdown
Raw Normal View History

2015-10-16 12:59:15 +02:00
### We have API built on top of gRPC framework
2015-10-16 12:56:31 +02:00
2015-12-14 14:22:23 +01:00
Enable API in configuration file:
```bash
# Enable gRPC api (required for fastnetmon_api_client tool)
enable_api = on
```
2015-10-16 12:56:31 +02:00
You could ban IP:
```bash
/opt/fastnetmon/fastnetmon_api_client ban 192.168.1.1
```
You could unban IP:
```bash
/opt/fastnetmon/fastnetmon_api_client unban 192.168.1.1
```
You could check banlist:
```bash
/opt/fastnetmon/fastnetmon_api_client get_banlist
```
Sample output:
```bash
192.168.1.1/32
```