dn42/hel1/bird2/bird.conf
2020-04-03 17:08:34 +02:00

75 lines
1.1 KiB
Plaintext

include "/etc/bird/vars.conf";
router id OWNIP;
protocol device {
scan time 10;
}
function is_self_net() {
return net ~ OWNNETSET;
}
function is_self_net_v6() {
return net ~ OWNNETSETv6;
}
protocol kernel {
scan time 20;
ipv6 {
import none;
export filter {
if source = RTS_STATIC then reject;
krt_prefsrc = OWNIPv6;
accept;
};
};
};
protocol kernel {
scan time 20;
ipv4 {
import none;
export filter {
if source = RTS_STATIC then reject;
krt_prefsrc = OWNIP;
accept;
};
};
}
protocol static {
route OWNNET reject;
ipv4 {
import all;
export none;
};
}
protocol static {
route OWNNETv6 reject;
ipv6 {
import all;
export none;
};
}
protocol static {
ipv4;
route 172.20.177.51/32 via "wg0";
route 172.20.177.52/32 via "wg0";
route 172.20.177.53/32 via "wg0";
}
protocol static {
ipv6;
route fdff:b02d:2ef7::90/124 via "wg0";
}
include "/etc/bird/conf/*";
include "/etc/bird/peers/*";