mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-27 08:25:47 +01:00
29 lines
476 B
Markdown
29 lines
476 B
Markdown
### We have API built on top of gRPC framework
|
|
|
|
Enable API in configuration file:
|
|
```bash
|
|
# Enable gRPC api (required for fastnetmon_api_client tool)
|
|
enable_api = on
|
|
```
|
|
|
|
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
|
|
```
|
|
|