Hello Nickola,
to my knowledge the only software NetFlow probe implementing such
feature (importing BGP stuff from a textfile or a Juniper router)
is Luca Deri's nProbe. But nProbe is not for free.

An alternate solution is to make the software probe to export just
IP addresses, as usual. Then, insert into the pmacct configuration
the following lines (remember to adapt them in a way that fits for
you):

pmacct configuration:
===
...
aggregate: src_as, dst_as
networks_file: /path/to/a/networks.lst
refresh_maps: true
...
===

/path/to/a/networks.lst:
===
...
! Example: <AS number>,<network>
137,192.168.0.0/24
138,192.168.64.0/20
...
===

pmacct supports hot networks_file reloading to deal nicely with
BGP changes without the need to restart the daemon. In order to
build the networks_file, it should suffice to find a way to dump
the content of the BGP table. Then, an hand of sed/awk/etc. will
do the job. 

That's a pretty interesting issue, in my opinion. Let me/us know
how things get evolved !


Cheers,
Paolo

Reply via email to