freifunk: learn freifunk default route and share over OSPF
This commit is contained in:
parent
08b35d6f51
commit
8bfb061785
|
@ -118,12 +118,12 @@ in {
|
|||
"2a02:8106:208:5281:8000::1/64"
|
||||
"fd23:42:c3d2:581:8000::1/64"
|
||||
];
|
||||
routes = map (Gateway: { routeConfig = { inherit Gateway; }; }) [
|
||||
# upstream1
|
||||
"2a02:8106:208:5281::b:0"
|
||||
# anon1
|
||||
"172.20.72.7"
|
||||
];
|
||||
# routes = map (Gateway: { routeConfig = { inherit Gateway; }; }) [
|
||||
# # upstream1
|
||||
# "2a02:8106:208:5281::b:0"
|
||||
# # anon1
|
||||
# "172.20.72.7"
|
||||
# ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -200,7 +200,38 @@ in {
|
|||
scan time 10;
|
||||
}
|
||||
|
||||
ipv4 table bmx_gw;
|
||||
protocol kernel BMX_GW {
|
||||
learn;
|
||||
kernel table ${toString rt_table_tuns};
|
||||
ipv4 {
|
||||
table bmx_gw;
|
||||
import filter {
|
||||
if net ~ [ 0.0.0.0/0 ] then {
|
||||
# Learn Freifunk default route
|
||||
accept;
|
||||
}
|
||||
reject;
|
||||
};
|
||||
};
|
||||
}
|
||||
protocol pipe import_bmx_gw {
|
||||
table master4;
|
||||
peer table bmx_gw;
|
||||
import all;
|
||||
}
|
||||
|
||||
protocol ospf v2 ZW4 {
|
||||
ipv4 {
|
||||
export all;
|
||||
import filter {
|
||||
if net ~ [ 0.0.0.0/0 ] then {
|
||||
# Drop default routes from OSPF
|
||||
reject;
|
||||
}
|
||||
accept;
|
||||
};
|
||||
};
|
||||
area 0 {
|
||||
networks {
|
||||
172.20.72.0/21;
|
||||
|
|
Loading…
Reference in New Issue