tweak BFD settings

This commit is contained in:
Steffen Vogel 2020-08-24 10:13:07 +02:00
parent 7266983ae5
commit ac8f20f22d
8 changed files with 40 additions and 28 deletions

View file

@ -55,5 +55,8 @@ function ebgp_export_v6()
if ! is_mine_ripe() then if ! is_mine_ripe() then
ok = false; ok = false;
if net = 2a09:11c0:202::/48 then
ok = false;
return ok; return ok;
} }

View file

@ -39,8 +39,5 @@ function ibgp_import_v6()
if net = ::/0 then if net = ::/0 then
ok = false; ok = false;
# if ! is_mine() then
# ok = false;
return ok; return ok;
} }

View file

@ -1,6 +1,8 @@
protocol bfd bfd1 { protocol bfd bfd1 {
interface "wg-*" { interface "wg-*" {
interval 100ms;
authentication simple;
password pw_bfd;
}; };
} }

View file

@ -30,6 +30,8 @@ protocol bgp dn42_grc_export {
} }
protocol bgp dn42_grc_import { protocol bgp dn42_grc_import {
disabled yes;
description "dn42: Global Route Collector Import (burble)"; description "dn42: Global Route Collector Import (burble)";
local fd42:4dd0:ff00::1:1 as my_dn42_asn; local fd42:4dd0:ff00::1:1 as my_dn42_asn;

View file

@ -1,27 +1,3 @@
template bgp rr_clients {
local as my_ripe_asn;
neighbor as my_ripe_asn;
rr client;
rr cluster id 172.23.156.3;
direct;
ipv4 {
import keep filtered;
import where ibgp_import_v4();
export where ibgp_export_v4();
next hop self;
};
ipv6 {
import keep filtered;
import where ibgp_import_v6();
export where ibgp_export_v6();
next hop self;
};
}
protocol bgp moon from rr_clients { protocol bgp moon from rr_clients {
description "iBGP: moon.0l.de"; description "iBGP: moon.0l.de";

View file

@ -6,6 +6,8 @@ protocol bgp k8s_0_v4 from rr_clients {
ipv4 { ipv4 {
export none; export none;
aigp originate;
}; };
} }
@ -17,5 +19,7 @@ protocol bgp k8s_0_v6 from rr_clients {
ipv6 { ipv6 {
export none; export none;
aigp originate;
}; };
} }

View file

@ -2,6 +2,7 @@ template bgp ebgp_peer {
local as my_ripe_asn; local as my_ripe_asn;
graceful restart on; graceful restart on;
allow local as 1;
} }
template bgp ebgp_peer_v6 from ebgp_peer { template bgp ebgp_peer_v6 from ebgp_peer {

27
templates/ibgp.conf Normal file
View file

@ -0,0 +1,27 @@
template bgp rr_clients {
local as my_ripe_asn;
neighbor as my_ripe_asn;
rr client;
rr cluster id 172.23.156.3;
direct;
ipv4 {
import keep filtered;
import where ibgp_import_v4();
export where ibgp_export_v4();
next hop self;
aigp originate;
};
ipv6 {
import keep filtered;
import where ibgp_import_v6();
export where ibgp_export_v6();
next hop self;
aigp originate;
};
}