From 9a8f73cf8810ae88db935ae81fe9a4154ec7d3513af020b57b49c1cb0d2f719d Mon Sep 17 00:00:00 2001 From: Late Night Defender Date: Mon, 25 Nov 2024 02:03:12 +0700 Subject: [PATCH] Add auto reconnect VPN every 15 mins --- reconnect-vpn.service | 9 +++++++++ reconnect-vpn.timer | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 reconnect-vpn.service create mode 100644 reconnect-vpn.timer diff --git a/reconnect-vpn.service b/reconnect-vpn.service new file mode 100644 index 0000000..d4ee1fe --- /dev/null +++ b/reconnect-vpn.service @@ -0,0 +1,9 @@ +[Unit] +Description=Reconnect VPN + +[Service] +Type=oneshot +ExecStart=nmcli con up vpn-name + +[Install] +WantedBy=default.target diff --git a/reconnect-vpn.timer b/reconnect-vpn.timer new file mode 100644 index 0000000..f24abb6 --- /dev/null +++ b/reconnect-vpn.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Reconnect VPN every 15 minutes + +[Timer] +OnCalendar=*:0/15 + +[Install] +WantedBy=default.target