From b72f1f4b41aabd7bcab4e4cfff12989e5738038d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Wed, 22 Jun 2022 13:30:45 +0200 Subject: [PATCH] misc/wireguard_keys: Generate desktop keys for internal network --- misc/wireguard_keys.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc/wireguard_keys.py b/misc/wireguard_keys.py index da7886c..86db96a 100755 --- a/misc/wireguard_keys.py +++ b/misc/wireguard_keys.py @@ -28,6 +28,14 @@ def generate_preshared_keys(): if not os.path.isfile(path2): os.symlink(path1, path2) + # desktop access + path = os.path.join(PATH, "localhost") + if not os.path.isfile(path + ".key"): + run(KEY_COMMAND.format(path, path), shell=True, check=True) + path = os.path.join(PATH, "localhost.psk") + if not os.path.isfile(path): + run(PSK_COMMAND.format(path), shell=True, check=True) + def generate_vpn_keys(): for client in VPN_CLIENTS: -- 2.44.0