FastNetMon Advanced offers complete production ready integration with cloud DDoS scrubbing service provided by Path.net.
To use this capability you will need username and password for their API.
How it works? When FastNetMon detects attack against IP address it determines /24 prefix for IP which is under attack and then announces it to Scrubbing Centre. When attack stops or ban time expires FastNetMon removes announce from Scrubbing Centre using their API.
First of all, please download integration logic file, then put it to: /usr/local/bin/scrubbing_services_integration and set executable bit:
sudo chmod +x /usr/local/bin/scrubbing_services_integration
Then you need to create configuration file /etc/fastnetmon_scrubbing_services_integration.json with following content:
{ "provider_name": "path", "path_username": "your_username", "path_password": "your_password", }
Finally, configure it on FastNetMon side to call it when FastNetMon blocks / unblocks IP:
sudo fcli set main notify_script_enabled enable sudo fcli set main notify_script_format json sudo fcli set main notify_script_path /usr/local/bin/scrubbing_services_integration sudo fcli commit
After that we recommend manually blocking some IP address from test prefix and checking that it works as expected.
You can do it this way:
sudo fcli set blackhole 1.2.3.4
And then to unblock list all blocked hosts with their UUIDs:
sudo fcli show blackhole
And unblock it:
sudo fcli delete blackhole <uuid>
Integration logic has very detailed logging and you can find log file here: /var/log/fastnetmon/fastnetmon_scrubbing_services_integration.log