freifunk: advertise default route in another ospf instance, import all ipv6 routes

This commit is contained in:
Astro 2021-05-01 01:41:26 +02:00
parent 3cad34726d
commit 60117817f7
1 changed files with 17 additions and 16 deletions

View File

@ -226,19 +226,10 @@ in {
protocol ospf v2 ZW4 {
ipv4 {
export all;
import filter {
if net ~ [ 0.0.0.0/0 ] then {
# Drop default routes from OSPF
reject;
}
accept;
};
export where net != 0.0.0.0/0;
import where net != 0.0.0.0/0;
};
area 0 {
networks {
172.20.72.0/21;
};
stubnet 10.200.0.0/15;
interface "core" {
authentication cryptographic;
@ -247,13 +238,23 @@ in {
};
}
protocol ospf v3 ZW6 {
protocol ospf v2 ZW4_freifunk {
ipv4 {
export where net = 0.0.0.0/0;
};
area 0 {
networks {
fd23:42:c3d2:500::/56;
2a02:8106:208:5200::/56;
2a02:8106:211:e900::/56;
interface "core" instance 6 {
authentication cryptographic;
password "${pkgs.zentralwerk-ospf-message-digest-key}";
};
};
}
protocol ospf v3 ZW6 {
ipv6 {
import all;
};
area 0 {
interface "core" {};
};
}