52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
##########################################################################
|
|
#
|
|
# Bird2 Multiprotocol Route Collector Client Example
|
|
#
|
|
# Based on the bird2 examples in the DN42 wiki
|
|
# https://wiki.dn42.us/howto/Bird2
|
|
#
|
|
##########################################################################
|
|
|
|
protocol bgp ROUTE_COLLECTOR
|
|
{
|
|
local as ***YOUR_ASN***;
|
|
neighbor fd42:4242:2601:ac12::1 as 4242422602;
|
|
|
|
# enable multihop as the collector is not locally connected
|
|
multihop;
|
|
|
|
ipv4 {
|
|
# export all available paths to the collector
|
|
add paths tx;
|
|
|
|
# import/export filters
|
|
import none;
|
|
export filter {
|
|
# export all valid routes
|
|
if ( is_valid_network() && source ~ [ RTS_STATIC, RTS_BGP ] )
|
|
then {
|
|
accept;
|
|
}
|
|
reject;
|
|
};
|
|
};
|
|
|
|
ipv6 {
|
|
# export all available paths to the collector
|
|
add paths tx;
|
|
|
|
# import/export filters
|
|
import none;
|
|
export filter {
|
|
# export all valid routes
|
|
if ( is_valid_network_v6() && source ~ [ RTS_STATIC, RTS_BGP ] )
|
|
then {
|
|
accept;
|
|
}
|
|
reject;
|
|
};
|
|
};
|
|
}
|
|
|
|
##########################################################################
|
|
# end of file |