ix-bird-config/bird6.conf

72 lines
1.4 KiB
Plaintext
Raw Normal View History

table T_BGP6;
2018-09-08 08:23:51 +00:00
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";
2018-09-08 08:23:51 +00:00
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;
2018-09-08 08:23:51 +00:00
local as 4242423934;
path metric 1;
import all;
export all;
2018-09-08 08:23:51 +00:00
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;
};
};
2018-09-08 08:23:51 +00:00
include "/etc/bird/peers6/*";