Better Wireguard on Aloria

This commit is contained in:
Thomas Avé 2024-12-26 15:56:45 +01:00
parent 9180f5b309
commit c6b18d0c73
1 changed files with 13 additions and 0 deletions

View File

@ -76,6 +76,15 @@ in {
};
};
systemd.network.enable = true;
networking.useNetworkd = true;
systemd.network.config.networkConfig = {
ManageForeignRoutingPolicyRules = false;
ManageForeignRoutes = false;
SpeedMeter = true;
};
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
networking.wg-quick.interfaces = {
Tunnel = {
address = [ "10.0.0.5/24" "2a02:a03f:83ad:2101::5/128" ];
@ -106,4 +115,8 @@ in {
}];
};
};
systemd.services."wg-quick-OPNsense" = {
serviceConfig = { Restart = "on-failure"; RestartSec = "2s"; };
unitConfig.StartLimitIntervalSec = 0;
};
}