nixos/estuary: Fix BIRD2 startup / route export to kernel
This commit is contained in:
parent
401401f6bc
commit
8300e49b00
@ -38,10 +38,11 @@ in
|
||||
router id from "wan";
|
||||
|
||||
protocol device {}
|
||||
#protocol direct {
|
||||
# interface "devplayer0";
|
||||
# ipv6;
|
||||
#}
|
||||
protocol direct {
|
||||
interface "wan";
|
||||
ipv4;
|
||||
ipv6;
|
||||
}
|
||||
protocol static {
|
||||
# Special case: We have to do the routing on behalf of this _internal_ next-hop
|
||||
#route INTNET6 via "devplayer0";
|
||||
@ -65,7 +66,6 @@ in
|
||||
}
|
||||
protocol kernel kernel6 {
|
||||
ipv6 {
|
||||
#import filter bgp_export;
|
||||
import none;
|
||||
export filter {
|
||||
if net ~ OWNNETSET6 then reject;
|
||||
|
@ -92,10 +92,25 @@
|
||||
'';
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
|
||||
bird2 =
|
||||
let
|
||||
waitOnline = "systemd-networkd-wait-online@wan.service";
|
||||
in
|
||||
{
|
||||
after = [ waitOnline ];
|
||||
requires = [ waitOnline ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
config = {
|
||||
networkConfig = {
|
||||
ManageForeignRoutes = false;
|
||||
};
|
||||
};
|
||||
|
||||
links = {
|
||||
"10-wan" = {
|
||||
matchConfig.MACAddress = "d0:50:99:fa:a7:99";
|
||||
|
Loading…
Reference in New Issue
Block a user