]> git.ipfire.org Git - people/ummeegge/ipfire-2.x.git/blobdiff - src/misc-progs/openvpnctrl.c
OpenVPN-DCO-OpenSSL3: Updates for OpenVPN-2.6.0 and OpenSSL-3.0.8
[people/ummeegge/ipfire-2.x.git] / src / misc-progs / openvpnctrl.c
index 0659aa6b14fd174a0b0e4376f8d86083e45ffbb2..472ce6956b398c8230b0316762f17ba72a9f6120 100644 (file)
@@ -501,6 +501,8 @@ void startDaemon(void) {
                executeCommand(command);
                snprintf(command, STRING_SIZE-1, "/sbin/modprobe tun");
                executeCommand(command);
+               snprintf(command, STRING_SIZE-1, "/sbin/modprobe ovpn-dco");
+               executeCommand(command);
                snprintf(command, STRING_SIZE-1, "/usr/sbin/openvpn --config /var/ipfire/ovpn/server.conf");
                executeCommand(command);
                snprintf(command, STRING_SIZE-1, "/bin/chown root.nobody /var/run/ovpnserver.log");
@@ -565,6 +567,8 @@ int startNet2Net(char *name) {
        char command[STRING_SIZE];
        snprintf(command, STRING_SIZE-1, "/sbin/modprobe tun");
        executeCommand(command);
+       snprintf(command, STRING_SIZE-1, "/sbin/modprobe ovpn-dco");
+       executeCommand(command);
        snprintf(command, STRING_SIZE-1, "/usr/sbin/openvpn --local %s --config %s", address, configfile);
        executeCommand(command);