From: Michael Tremer Date: Tue, 9 Apr 2024 16:38:26 +0000 (+0200) Subject: initscripts: Manually load the tun module for OpenVPN X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6fae82eec4479c7f5a0e0e78cb2daa169e93e29e;p=people%2Fms%2Fipfire-2.x.git initscripts: Manually load the tun module for OpenVPN The server cannot load the module itself. Signed-off-by: Michael Tremer --- 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