wireguard: updates
This commit is contained in:
parent
680e151b8b
commit
0f33c97abb
|
@ -1,8 +1,13 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
systemd.services.wg-quick-wg5.serviceConfig.Type = lib.mkForce "simple";
|
||||
systemd.services.wg-quick-wg5.serviceConfig.Restart = "on-failure";
|
||||
systemd.services.wg-quick-wg5.serviceConfig.RestartSec = "5s";
|
||||
|
||||
networking = {
|
||||
networkmanager.dns = "systemd-resolved";
|
||||
|
||||
|
@ -59,6 +64,7 @@
|
|||
];
|
||||
};
|
||||
wg1 = {
|
||||
autostart = false;
|
||||
address = ["192.168.188.203/24"];
|
||||
privateKeyFile = "/etc/wireguard/wg1.privatekey";
|
||||
|
||||
|
@ -134,7 +140,8 @@
|
|||
publicKey = "UhPW8jebAPaMYqjJfSFO9QAMhk0E+dq4i6lB4Wjg91Q=";
|
||||
presharedKeyFile = "/etc/wireguard/wg5.presharedkey";
|
||||
allowedIPs = [ "192.168.13.0/24" ];
|
||||
endpoint = "ktjh20jr89gkcqwr.myfritz.net:59538";
|
||||
endpoint = "svxqr7qjmk9beu7t.myfritz.net:59538";
|
||||
#endpoint = "84.44.134.172:59538";
|
||||
persistentKeepalive = 25;
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue