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



Hi,

thank you for your suggestion.
Unfortunately, starting OpenVPN is not the only thing we need to do when LTE comes up, so until now 
dispatcher.d seems to us what ist the most versatile solution to fit our needs. Anyways, I will give your 
solution a shot when the routers running NM will be back from the field test the are currently on. My last 
resort would be a cron job checking if lte0 is present, otherwise running the "stop" part of our 
configuration.

Best regards

Martin Chauchet, M.Sc.
Communication systems

Fraunhofer Institute for Communication, Information Processing and Ergonomics FKIE 
Zanderstraße 5
53177 Bonn
Telefon +49 (0)228 50212-481
mailto:martin chauchet fkie fraunhofer de
http://www.fkie.fraunhofer.de



-----Ursprüngliche Nachricht-----
Von: Till Maas [mailto:till redhat com] 
Gesendet: Freitag, 10. Mai 2019 17:27
An: Chauchet, Martin <martin chauchet fkie fraunhofer de>
Cc: networkmanager-list gnome org
Betreff: 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]