table T_BGP6; protocol device { scan time 10; } # local configuration ###################### include "/etc/bird/local6.conf"; # filter helpers ################# #include "/etc/bird/filter6.conf"; include "/etc/bird/community_filters.conf"; protocol kernel { metric 64; # Use explicit kernel route metric to avoid collisions # with non-BIRD routes in the kernel routing table scan time 20; import none; # export all; # Actually insert routes into the kernel routing table export filter { if source = RTS_STATIC then reject; krt_prefsrc = OWNIP; accept; }; } # static routes ################ protocol static { route fd62:77fb:94bf::/48 reject; import all; export none; } template bgp dnpeers { table T_BGP6; local as 4242423934; path metric 1; import all; export all; import limit 1000 action block; } protocol pipe { peer table T_BGP6; import filter { # accept every subnet, except our own advertised subnet # filtering is important, because some guys try to advertise routes like 0.0.0$ if is_valid_network() && !is_self_net() then { accept; } reject; }; export filter { # here we export the whole net if is_valid_network() then { accept; } reject; }; }; include "/etc/bird/peers6/*";