]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
initscripts: Manually load the tun module for OpenVPN
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Apr 2024 16:38:26 +0000 (18:38 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 2 Jun 2025 19:46:24 +0000 (19:46 +0000)
The server cannot load the module itself.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/openvpn-n2n
src/initscripts/system/openvpn-rw

index 1ee6bf724575efad983888a5807f3ad23625de44..6d5e66578eb11e5df62455279a5b3f70abfc8782 100644 (file)
@@ -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" \
index ef14cd3c8192e5234471e83fc718c9881403bc20..03075148ef1784390426353f56e554bcb81e15ec 100644 (file)
@@ -34,6 +34,9 @@ case "${1}" in
                        exit 0
                fi
 
+               # Load the tun module
+               modprobe tun
+
                # Flush all firewall rules
                iptables -F OVPNINPUTRW