]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
core153: Ship openvpn
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 1 Dec 2020 16:12:43 +0000 (16:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 1 Dec 2020 16:12:43 +0000 (16:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/153/filelists/openvpn [new symlink]
config/rootfiles/core/153/update.sh

diff --git a/config/rootfiles/core/153/filelists/openvpn b/config/rootfiles/core/153/filelists/openvpn
new file mode 120000 (symlink)
index 0000000..493f3f7
--- /dev/null
@@ -0,0 +1 @@
+../../../common/openvpn
\ No newline at end of file
index f94cf49259838ee2cce0acc500e5bf2224e7661c..6ff19e3611ec4e3512bb91ab16283ca7e2619011 100644 (file)
@@ -90,6 +90,8 @@ rm -rf /lib/modules
 
 # Stop services
 /etc/init.d/ipsec stop
+/usr/local/bin/openvpnctrl -k
+/usr/local/bin/openvpnctrl -kn2n
 
 # Extract files
 extract_files
@@ -116,6 +118,8 @@ if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
     /etc/init.d/ipsec start
 fi
 /etc/init.d/suricata restart
+/usr/local/bin/openvpnctrl -s
+/usr/local/bin/openvpnctrl -sn2n
 
 # Reload sysctl.conf
 sysctl -p