FastNetMon Advanced provides number of options to apply different actions when it discovered DDoS attack. Also, it provides number of options to extend it using different approaches.

In this guide we will provide completely working approach for implementing escalations. Using this script, you can configure FastNetMon to create custom BGP announce for already blocked (blackholed) host when it crosses specified (“emergency”) threshold of traffic.

To use this script, please configure BGP Then, please enable API You need to set secure password for API and then please specify this password inside specified script on line: “auth_data”.

Please download this script from GitHub:

chmod +x
sudo cp /opt

Please install dependencies:

sudo pip install requests

Also, in script you need to change following configuration options according to your requirements:

incoming_mbits_threshold = 100
outgoing_mbits_threshold = 100

incoming_packets_threshold = 2000
outgoing_packets_threshold = 2000

bgp_community = '65001:777'
bgp_next_hop = ''

Finally, please add following cron entry in file /etc/cron.d/escalation_to_bgp_blackhole:

* * * * *  root    /opt/

Apply changes for cron:

service cron restart

This script will run each minute, check list of all already blackholed hosts and if they exceed thresholds in script it will announce /24 subnet for them with specified nexthop and community.

24/7 Tech Support

Email Us