Add auto reconnect VPN every 15 mins

This commit is contained in:
Late Night Defender 2024-11-25 02:03:12 +07:00
parent 85180617ee
commit 9a8f73cf88
2 changed files with 17 additions and 0 deletions

9
reconnect-vpn.service Normal file
View file

@ -0,0 +1,9 @@
[Unit]
Description=Reconnect VPN
[Service]
Type=oneshot
ExecStart=nmcli con up vpn-name
[Install]
WantedBy=default.target

8
reconnect-vpn.timer Normal file
View file

@ -0,0 +1,8 @@
[Unit]
Description=Reconnect VPN every 15 minutes
[Timer]
OnCalendar=*:0/15
[Install]
WantedBy=default.target