|
|
|
@ -15,6 +15,8 @@ define OWNNETSETv6 = [{{ dn42_local_subnet_v6 }}+];
|
|
|
|
|
################################################
|
|
|
|
|
|
|
|
|
|
router id OWNIP;
|
|
|
|
|
ipv4 table dn42_v4;
|
|
|
|
|
ipv6 table dn42_v6;
|
|
|
|
|
|
|
|
|
|
protocol device {
|
|
|
|
|
scan time 10;
|
|
|
|
@ -71,6 +73,7 @@ protocol kernel {
|
|
|
|
|
scan time 20;
|
|
|
|
|
|
|
|
|
|
ipv6 {
|
|
|
|
|
table dn42_v6;
|
|
|
|
|
import none;
|
|
|
|
|
export filter {
|
|
|
|
|
if source = RTS_STATIC then reject;
|
|
|
|
@ -78,12 +81,16 @@ protocol kernel {
|
|
|
|
|
accept;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
{% if dn42_configure_linux_network_table %}
|
|
|
|
|
kernel table 42;
|
|
|
|
|
{% endif %}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
protocol kernel {
|
|
|
|
|
scan time 20;
|
|
|
|
|
|
|
|
|
|
ipv4 {
|
|
|
|
|
table dn42_v4;
|
|
|
|
|
import none;
|
|
|
|
|
export filter {
|
|
|
|
|
if source = RTS_STATIC then reject;
|
|
|
|
@ -91,12 +98,16 @@ protocol kernel {
|
|
|
|
|
accept;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
{% if dn42_configure_linux_network_table %}
|
|
|
|
|
kernel table 42;
|
|
|
|
|
{% endif %}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protocol static {
|
|
|
|
|
route OWNNET reject;
|
|
|
|
|
|
|
|
|
|
ipv4 {
|
|
|
|
|
table dn42_v4;
|
|
|
|
|
import all;
|
|
|
|
|
export none;
|
|
|
|
|
};
|
|
|
|
@ -106,6 +117,7 @@ protocol static {
|
|
|
|
|
route OWNNETv6 reject;
|
|
|
|
|
|
|
|
|
|
ipv6 {
|
|
|
|
|
table dn42_v6;
|
|
|
|
|
import all;
|
|
|
|
|
export none;
|
|
|
|
|
};
|
|
|
|
@ -116,6 +128,7 @@ template bgp dnpeers {
|
|
|
|
|
path metric 1;
|
|
|
|
|
|
|
|
|
|
ipv4 {
|
|
|
|
|
table dn42_v4;
|
|
|
|
|
import filter {
|
|
|
|
|
if is_valid_network() && !is_self_net() then {
|
|
|
|
|
{% if dn42_enable_roa %}
|
|
|
|
@ -134,6 +147,7 @@ template bgp dnpeers {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ipv6 {
|
|
|
|
|
table dn42_v6;
|
|
|
|
|
import filter {
|
|
|
|
|
if is_valid_network_v6() && !is_self_net_v6() then {
|
|
|
|
|
{% if dn42_enable_roa %}
|
|
|
|
@ -197,4 +211,4 @@ template bgp dnpeers_v6 {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include "/etc/bird/peers/*";
|
|
|
|
|
include "/etc/bird/peers/*";
|
|
|
|
|