58 lines
961 B
Plaintext
58 lines
961 B
Plaintext
|
protocol device {
|
||
|
scan time 10;
|
||
|
}
|
||
|
|
||
|
# local configuration
|
||
|
######################
|
||
|
|
||
|
include "/etc/bird/local6.conf";
|
||
|
|
||
|
# filter helpers
|
||
|
#################
|
||
|
|
||
|
##include "/etc/bird/filter6.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 {
|
||
|
local as 4242423934;
|
||
|
path metric 1;
|
||
|
import keep filtered;
|
||
|
import filter {
|
||
|
if is_valid_network() && !is_self_net() then {
|
||
|
accept;
|
||
|
}
|
||
|
reject;
|
||
|
};
|
||
|
|
||
|
export filter {
|
||
|
if is_valid_network() then {
|
||
|
accept;
|
||
|
}
|
||
|
reject;
|
||
|
};
|
||
|
import limit 1000 action block;
|
||
|
}
|
||
|
|
||
|
include "/etc/bird/peers6/*";
|