networking: beautify

This commit is contained in:
Rouven Seifert 2024-04-26 10:37:13 +02:00
parent 71c7cf31d2
commit 7bc9e06788
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 17 additions and 3 deletions

View file

@ -87,8 +87,15 @@
};
networks."30-dorm" = {
matchConfig.Name = "wg0";
addresses = [
{
addressConfig = {
Address = "192.168.43.4/24";
AddPrefixRoute = false;
};
}
];
networkConfig = {
Address = "192.168.43.4/32";
DNS = "192.168.43.1";
Domains = [
"~vpn.rfive.de"

View file

@ -163,8 +163,15 @@
networks."30-wg0" = {
matchConfig.Name = "wg0";
linkConfig.RequiredForOnline = false;
addresses = [
{
addressConfig = {
Address = "192.168.43.3/24";
AddPrefixRoute = false;
};
}
];
networkConfig = {
Address = "192.168.43.3/32";
DNS = "192.168.43.1";
Domains = [
"~vpn.rfive.de"

View file

@ -95,7 +95,7 @@
systemd.services = {
openfortivpn-agdsn = {
description = "AG DSN Fortinet VPN";
script = "${pkgs.openfortivpn}/bin/openfortivpn vpn.agdsn.de:443 --realm admin-vpn -u r5 -p $(cat $CREDENTIALS_DIRECTORY/password) --trusted-cert bbbe0df79764c5f1bd4b332e449e43a40e43eec57c983a1e75a1896e6eae4da5";
script = "${pkgs.openfortivpn}/bin/openfortivpn vpn.agdsn.de:443 --realm admin-vpn -u r5 -p $(cat $CREDENTIALS_DIRECTORY/password)";
requires = [ "network-online.target" ];
after = [ "network.target" "network-online.target" ];
serviceConfig = {