C4TG1RL5_UN1T3D.DN42/frog/bird/bird.conf
2022-07-10 21:38:54 +02:00

96 lines
1.6 KiB
Plaintext

define AS = 4242421411;
define IPv4 = 172.23.196.33;
define IPv6 = fd42:deca:fbad::1;
define NETv4 = 172.23.196.32/27;
define NETv6 = fd42:deca:fbad::/48;
define NETSETv4 = [172.23.196.32/27+];
define NETSETv6 = [fd42:deca:fbad::/48+];
define DN42_REGION = 41;
router id IPv4;
log "/tmp/bird.log" all;
roa4 table dn42_roa;
roa6 table dn42_roa6;
protocol device {
scan time 10;
};
protocol kernel {
scan time 20;
ipv4 {
import none;
export filter {
if source = RTS_DEVICE then reject;
krt_prefsrc = IPv4;
accept;
};
};
};
protocol kernel {
scan time 20;
ipv6 {
import none;
export filter {
if source = RTS_DEVICE then reject;
krt_prefsrc = IPv6;
accept;
};
};
};
protocol static {
roa4 {
table dn42_roa;
};
include "/etc/bird/roa/dn42_roa_bird2_4.conf";
};
protocol static {
roa6 {
table dn42_roa6;
};
include "/etc/bird/roa/dn42_roa_bird2_6.conf";
};
protocol static {
route NETv4 reject;
ipv4 {
import all;
export none;
};
};
protocol static {
route NETv6 reject;
ipv6 {
import all;
export none;
};
};
template bgp dn42_peer {
local as AS;
prefer older on;
enforce first as on;
enable extended messages on;
};
template bgp dn42_igp {
local as AS;
enable extended messages on;
direct;
};
# Functions
include "/etc/bird/functions/*.conf";
# IGP stuff
include "/etc/bird/igp/*.conf";
include "/etc/bird/babel.conf";
# BGP peers
include "/etc/bird/peers/*";