Hi,

Am Fr., 10. Mai 2019 um 11:16 Uhr schrieb Chauchet, Martin
<[email protected]>:

> We are currently working on an automated OpenVPN connection over LTE 
> connections, i.e. whenever an LTE stick ist plugged in and the connection ist 
> established, OpenVPN is required to be started automatically. Same thing 
> vice-versa (stop OpenVPN service) when the device is unplugged.
>
> We are trying to achieve this with a dispatcher.d script.

this feature is built in into NetworkManager as far as I understand.
You should be able to setup a connection profile for LTE that is
configured to automatically connect and as a "secondaries" setting you
should be able to specify the UUID of a VPN profie that is
automatically connected when the LTE profile is active.
https://developer.gnome.org/NetworkManager/unstable/nm-settings.html
is the reference I looked into for these settings.

Kind regards
Till

-- 
Till Maas
Ansible RHEL Networking System Role Maintainer
Red Hat GmbH

Red Hat GmbH, https://www.redhat.com/de, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Michael O'Neill, Tom Savage, Eric Shander
_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to