From 81a789d9315219cca58160ea2dbd005287ae4bd3 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 19 Jul 2011 11:42:53 +0200 Subject: [PATCH] openvpnctrl: Force 'modprobe tun' before starting the openvpn daemon. --- src/misc-progs/openvpnctrl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/misc-progs/openvpnctrl.c b/src/misc-progs/openvpnctrl.c index 9112f1f9e0..758800da16 100644 --- a/src/misc-progs/openvpnctrl.c +++ b/src/misc-progs/openvpnctrl.c @@ -439,7 +439,9 @@ void startNet2Net(char *name) { setFirewallRules(); char command[STRING_SIZE]; - sprintf(command, "/usr/sbin/openvpn --config %s", configfile); + snprintf(command, STRING_SIZE-1, "/sbin/modprobe tun"); + executeCommand(command); + snprintf(command, STRING_SIZE-1, "/usr/sbin/openvpn --config %s", configfile); executeCommand(command); } -- 2.39.5