bird-configs/lakewood.united-states/bird.conf

89 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-08-15 16:43:13 +00:00
log stderr all;
debug protocols { states, routes, filters, interfaces };
router id 252.222.50.251;
define DN42_OWN_AS = 4242420475;
define DN42_EXPORTABLE_NETSET = [
fd51:9b17:dc40::/48
];
define DN42_OWN_REGION = 1;
define DN42_OWN_COUNTRY = 276;
define DN42_OWN_BANDWIDTH = 3;
ipv6 table dn42;
roa6 table dn42_roa;
include "/etc/bird/dn42-filter.conf";
protocol device { scan time 10; }
protocol direct {
vrf "vrf-dn42";
check link yes;
ipv6 { table dn42; };
}
protocol static {
# Sink routes of owned prefixes
route fd51:9b17:dc40::/48 unreachable;
ipv6 { table dn42; };
}
protocol kernel {
vrf "vrf-dn42";
kernel table 20;
scan time 20;
learn;
merge paths 64;
ipv6 {
table dn42;
import filter {
if !dn42_is_valid_network() then reject; # Only import valid networks
if source != RTS_STATIC then reject; # Don't import non-static routes
accept;
};
export filter {
if source = RTS_STATIC then reject; # Don't export my routes back to kernel
# krt_prefsrc = DN42_OWN_IP; # Pick my own IP as default/source for these routes
accept;
};
};
}
protocol rpki roa_dn42 {
roa6 { table dn42_roa; };
remote ::1;
port 8082;
refresh 60;
retry 30;
expire 7200;
}
template bgp dn42peer {
vrf "vrf-dn42";
local as DN42_OWN_AS;
path metric 1;
ipv6 {
table dn42;
};
}
protocol babel vlan42 {
vrf "vrf-dn42";
interface "br-dn42" {
type wired;
check link 1;
};
ipv6 {
table dn42;
import all;
export all;
};
}
include "/etc/bird/peers/*";