mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
core146: add openvpn
openvpn was missed in core145 so add it again. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
1
config/rootfiles/core/146/filelists/openvpn
Symbolic link
1
config/rootfiles/core/146/filelists/openvpn
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../../common/openvpn
|
||||||
@@ -89,6 +89,8 @@ rm -rf /lib/modules
|
|||||||
# Remove files
|
# Remove files
|
||||||
|
|
||||||
# Stop services
|
# Stop services
|
||||||
|
/usr/local/bin/openvpnctrl -k
|
||||||
|
/usr/local/bin/openvpnctrl -kn2n
|
||||||
|
|
||||||
# Extract files
|
# Extract files
|
||||||
extract_files
|
extract_files
|
||||||
@@ -115,7 +117,19 @@ done
|
|||||||
# Filesytem cleanup
|
# Filesytem cleanup
|
||||||
/usr/local/bin/filesystem-cleanup
|
/usr/local/bin/filesystem-cleanup
|
||||||
|
|
||||||
|
# Enable OpenVPN metrics collection
|
||||||
|
sed -E -i /var/ipfire/ovpn/server.conf \
|
||||||
|
-e "/^client-(dis)?connect/d"
|
||||||
|
|
||||||
|
cat <<EOF >> /var/ipfire/ovpn/server.conf
|
||||||
|
# Log clients connecting/disconnecting
|
||||||
|
client-connect "/usr/sbin/openvpn-metrics client-connect"
|
||||||
|
client-disconnect "/usr/sbin/openvpn-metrics client-disconnect"
|
||||||
|
EOF
|
||||||
|
|
||||||
# Start services
|
# Start services
|
||||||
|
/usr/local/bin/openvpnctrl -s
|
||||||
|
/usr/local/bin/openvpnctrl -sn2n
|
||||||
|
|
||||||
# remove lm_sensor config after collectd was started
|
# remove lm_sensor config after collectd was started
|
||||||
# to reserch sensors at next boot with updated kernel
|
# to reserch sensors at next boot with updated kernel
|
||||||
|
|||||||
Reference in New Issue
Block a user