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

83 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

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/dn42-filter.conf";
protocol direct dn42_direct {
vrf "vrf-dn42";
check link yes;
ipv6 { table dn42; };
}
protocol static dn42_static {
# Sink routes of owned prefixes
route fd51:9b17:dc40::/48 unreachable;
ipv6 { table dn42; };
}
protocol kernel dn42_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/dn42/peers/*";