Re: Run dispatcher.d script when lte device is unplugged



Hi,

Am Fr., 10. Mai 2019 um 11:16 Uhr schrieb Chauchet, Martin
<martin chauchet fkie fraunhofer de>:

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]