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. Please check your version of FastNetMon is 2.0.357 or newer.
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.
Then you can use fcli to apply configuration:
sudo fcli set plugin scrubbing_services_integration provider_name path sudo fcli set plugin scrubbing_services_integration path_username your_username sudo fcli set plugin scrubbing_services_integration path_password your_password sudo fcli set plugin scrubbing_services_integration log_path /var/log/fastnetmon/fastnetmon_scrubbing_services_integration.log
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 /opt/fastnetmon/libraries/scrubbing_services_integration_plugin/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 18.104.22.168
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