Better Wireguard on Aloria
This commit is contained in:
parent
9180f5b309
commit
c6b18d0c73
|
@ -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 = {
|
networking.wg-quick.interfaces = {
|
||||||
Tunnel = {
|
Tunnel = {
|
||||||
address = [ "10.0.0.5/24" "2a02:a03f:83ad:2101::5/128" ];
|
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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue