1

Rename wireguard vpn interface

This commit is contained in:
2023-04-26 19:31:09 +02:00
parent b4c5b37f45
commit ba8b2bc56a

View File

@ -199,15 +199,15 @@
# TODO: This should be parametrized # TODO: This should be parametrized
# - Each server should get its own link? # - Each server should get its own link?
# - The endpoints/public keys should be in a map? # - The endpoints/public keys should be in a map?
wg0-de-115 = { wg0-DE-115 = {
description = "Wireguard ProtonVPN Server DE-115"; description = "Wireguard ProtonVPN Server DE-115";
requires = ["netns-vpn.service"]; requires = ["netns-vpn.service"];
after = ["netns-vpn.service"]; after = ["netns-vpn.service"];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
RemainAfterExit = true; RemainAfterExit = true;
ExecStart = pkgs.writeScript "de-115-up" (wgup "wg0" "proton-de-115.key" "9+CorlxrTsQR7qjIOVKsEkk8Z7UUS5WT3R1ccF7a0ic=" "194.126.177.14"); ExecStart = pkgs.writeScript "DE-115-up" (wgup "wg0-de-115" "proton-de-115.key" "9+CorlxrTsQR7qjIOVKsEkk8Z7UUS5WT3R1ccF7a0ic=" "194.126.177.14");
ExecStop = pkgs.writeScript "de-115-down" (wgdown "wg0"); ExecStop = pkgs.writeScript "DE-115-down" (wgdown "wg0-de-115");
}; };
}; };
}; };