95 lines
1.6 KiB
Plaintext
95 lines
1.6 KiB
Plaintext
define AS = 4242421411;
|
|
define IPv4 = ;
|
|
define IPv6 = ;
|
|
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 = ;
|
|
|
|
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_STATIC then reject;
|
|
krt_prefsrc = IPv4;
|
|
accept;
|
|
};
|
|
};
|
|
};
|
|
|
|
protocol kernel {
|
|
scan time 20;
|
|
ipv6 {
|
|
import none;
|
|
export filter {
|
|
if source = RTS_STATIC 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;
|
|
advertise hostname on;
|
|
allow bgp_local_pref;
|
|
};
|
|
|
|
template bgp dn42_igp {
|
|
local as AS;
|
|
direct;
|
|
};
|
|
|
|
include "/etc/bird/config/functions.conf";
|
|
include "/etc/bird/config/custom_filters.conf";
|
|
include "/etc/bird/config/community_filters.conf";
|
|
include "/etc/bird/igp/ospf/ospf.conf";
|
|
include "/etc/bird/igp/peers/*";
|
|
include "/etc/bird/peers/*";
|
|
|