2
0
forked from Ivasoft/openwrt

openvpn: add generic hotplug mechanism

Pass a default --up and --down executable to each started OpenVPN instance
which triggers /etc/hotplug.d/openvpn/ scripts whenever an instance
goes up or down.

User-configured up and down scripts are invoked by the default shipped
01-user hotplug handler to ensure that existing setups continue to work
as before.

As a consequence of this change, the up, down and script_security OpenVPN
options are removed from the option file, since we're always passing them
via the command line, they do not need to get included into the generated
configuration.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
[reword commit message, move hotplug executable to /usr/libexec]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Florian Eckert
2018-11-30 14:03:50 +01:00
committed by Jo-Philipp Wich
parent 9c16c46e58
commit 8fe9940db6
6 changed files with 81 additions and 8 deletions

View File

@@ -25,7 +25,6 @@ dev
dev_node
dev_type
dh
down
ecdh_curve
echo
engine
@@ -103,7 +102,6 @@ route_metric
route_pre_down
route_up
rport
script_security
secret
server
server_bridge
@@ -127,7 +125,6 @@ tran_window
tun_mtu
tun_mtu_extra
txqueuelen
up
user
verb
verify_client_cert