From 0344b9870489f9a110da9d41be4db7785b1b5064 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 9 Apr 2024 18:38:26 +0200 Subject: [PATCH] initscripts: Manually load the tun module for OpenVPN The server cannot load the module itself. Signed-off-by: Michael Tremer --- src/initscripts/system/openvpn-n2n | 3 +++ src/initscripts/system/openvpn-rw | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/initscripts/system/openvpn-n2n b/src/initscripts/system/openvpn-n2n index 1ee6bf724..6d5e66578 100644 --- a/src/initscripts/system/openvpn-n2n +++ b/src/initscripts/system/openvpn-n2n @@ -251,6 +251,9 @@ start() { return 1 fi + # Load the tun module + modprobe tun + boot_mesg "Starting OpenVPN N2N connection '${name}'..." PIDFILE="/var/run/${name}n2n.pid" \ diff --git a/src/initscripts/system/openvpn-rw b/src/initscripts/system/openvpn-rw index ef14cd3c8..03075148e 100644 --- a/src/initscripts/system/openvpn-rw +++ b/src/initscripts/system/openvpn-rw @@ -34,6 +34,9 @@ case "${1}" in exit 0 fi + # Load the tun module + modprobe tun + # Flush all firewall rules iptables -F OVPNINPUTRW -- 2.39.5