mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
backup(.pl): Replace OpenVPN DH parameter with ffdhe4096
This ensures restoring a backup won't silently bring back an insecure Diffie-Hellman parameter (which could also not be inspected through the web interface anymore). Reported-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
@@ -184,6 +184,9 @@ restore_backup() {
|
|||||||
# move nobeeps if exist
|
# move nobeeps if exist
|
||||||
[ -e "/var/ipfire/ppp/nobeeps" ] && mv /var/ipfire/ppp/nobeeps /var/ipfire/red/nobeeps
|
[ -e "/var/ipfire/ppp/nobeeps" ] && mv /var/ipfire/ppp/nobeeps /var/ipfire/red/nobeeps
|
||||||
|
|
||||||
|
# Replace previously used OpenVPN Diffie-Hellman parameter by ffdhe4096
|
||||||
|
sed -i 's|/var/ipfire/ovpn/ca/dh1024.pem|/etc/ssl/ffdhe4096.pem|' /var/ipfire/ovpn/server.conf /var/ipfire/ovpn/n2nconf/*/*.conf
|
||||||
|
|
||||||
# Update OpenVPN CRL
|
# Update OpenVPN CRL
|
||||||
/etc/fcron.daily/openvpn-crl-updater
|
/etc/fcron.daily/openvpn-crl-updater
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user