Hello, I have a system that detects attacks (DDOS) on the CCR and by BGP sends to my main router an IP address in the prefix / 32 which is being attacked.
How can I send such an IP address with a changed community to my upstreamers to cut the address? An example from BIRD:
if ((XXX,666) ~ bgp_community ) then {
bgp_community = -empty-;
bgp_community.add((1234,666));
accept;
}
So if it detects / 32 from community XXX, 666 changes it to 1234,666 and sends it to upstremers.