Check Pushed IPv4/6 routes

21 views
Skip to first unread message

gaston gutierrez

unread,
May 21, 2021, 12:52:55 PM5/21/21
to sFlow-RT
Hi Peter,

For Flowspec routes, there's a way of listing all current advertisements (bgpFlows(router)). Is there a similar way of listing regular IPv4/6 routes (RTBH)? As far as I can tell from the docs we can check specific prefixes, not the whole list.

Regards,
Gaston

Peter Phaal

unread,
May 21, 2021, 5:03:42 PM5/21/21
to sFlow-RT
Thanks for raising the issue. I just pushed version 3.0-1594 that adds the missing functionality.

The REST API call, /bgp/routepusher/{router}/json, returns a list of prefixes.

In the JavaScript API, bgpRoutes(router), performs the same function. There is also a new JavaScript function, bgpGetRoute(router,prefix), to query the route options for the prefix.

FYI The  ddos-protect application (https://github.com/sflow-rt/ddos-protect) keeps track of the BGP Flowspec rules / RTBH routes that it adds and removes in a JavaScript object, along with other metadata about the traffic condition triggering the control.
Reply all
Reply to author
Forward
0 new messages