]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add --route-pre-down/OPENVPN_PLUGIN_ROUTE_PREDOWN script/plug-in hook
authorDavid Sommerseth <davids@redhat.com>
Tue, 24 Jan 2012 11:32:46 +0000 (12:32 +0100)
committerDavid Sommerseth <davids@redhat.com>
Wed, 25 Jan 2012 17:00:10 +0000 (18:00 +0100)
commit415421c24ac5b62d59fb8f03076521cba6f126cc
tree7340ff0ec74131afb722445878e2a5b667331d6a
parent62c613d46dc495d747074ca030d2cbdfd255c386
Add --route-pre-down/OPENVPN_PLUGIN_ROUTE_PREDOWN script/plug-in hook

This patchs adds a script/plug-in hook which is called right before the
network routes are taken down.  This gives external processes a
possibility to tear down communication over the VPN before the VPN
disappears.

One use case can be to mount a networked file system over the VPN via
--route-up.  And then to unmount this file system via --route-pre-down

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
init.c
openvpn-plugin.h
openvpn.8
options.c
options.h