in Technology

Persisting a VPN connection on Linux

Here is a small service that I wrote, mostly to learn about systemd but also to fix an annoying omission in desktop Linux installations.

The service will monitor the status of a given VPN connection using nmcli, and reconnect if the connection ends for any reason.

I’ve been running this for a few days now, and have experienced a near-seamless VPN connection, including after suspend or reboot.

Source code

Write a Comment

Comment