Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Using NetworkManager OpenVPN connections as dependencies in systemd?

Is that even possible?

I can't see any systemd unit that might represent the OpenVPN connection I have configured in NetworkManager through the Gnome network settings.

I enjoy being able to use the Gnome shell to enable and disable my VPN but it doesn't seem to be linked to the openvpn-client@.service unit.

Reason I'm asking is because I thought I'd be able to replace autofs by making the OpenVPN unit a Requisite in an automount unit. But if I can't do that then the automount unit will timeout everytime I try to access the Where directory without being connected to my VPN.

Today I use autofs for this and I only recently learned of systemd.mount.

Using NetworkManager OpenVPN connections as dependencies in systemd?

Is that even possible?

I can't see any systemd unit that might represent the OpenVPN connection I have configured in NetworkManager through the Gnome network settings.

I enjoy being able to use the Gnome shell to enable and disable my VPN but it doesn't seem to be linked to the openvpn-client@.service unit.

I often mount NFS over OpenVPN. Reason I'm asking is because I thought I'd be able to replace autofs by making the OpenVPN unit a Requisite in an automount unit. But if I can't do that then the automount unit will timeout everytime I try to access the Where directory without being connected to my VPN.

Today I use autofs for this and I only recently learned of systemd.mount.