FastNetMon Advanced and Telegram integration

FastNetMon Advanced has complete support for native Telegram alerts for ban and unban actions for blackhole mode. It’s available starting from 2.0.329.

To use notifications, you need to create a bot in Telegram. To create bot, you will need to contact a special @BotFather account in Telegram and then follow the instructions.

After this, you will need to get a user id (positive integer number) to send alerts to a specific user account or group/chat ID (negative integer number) to send alerts to a group which has multiple people. It can be done using a web client for Telegram. After successful authentication, you will see these numbers in the browser's address bar (-1124297600 in the example) when you open private messages with a user or open a specific chat room:

After that, you can use these numbers for the field telegram_notifications_recipients.

You can enable Telegram integration using the following options:

sudo fcli set main telegram_notifications_enabled true
sudo fcli set main telegram_notifications_add_simple_packet_dump true
sudo fcli set main telegram_notifications_bot_token secret_token
sudo fcli set main telegram_notifications_recipients 12345
sudo fcli set main telegram_notifications_recipients -12345
sudo fcli commit

Example notification: