Set static IPs when using OpenVPN

- Preparation for feature request from issue #942
This commit is contained in:
Orazio 2020-02-09 18:51:30 +01:00
parent 3f616d9254
commit ead280e60f
5 changed files with 21 additions and 0 deletions

View file

@ -1740,6 +1740,13 @@ confOpenVPN(){
$SUDO rm /etc/openvpn/server.conf
fi
if [ -d /etc/openvpn/ccd ]; then
$SUDO rm -rf /etc/openvpn/ccd
fi
# Create folder to store client specific directives used to push static IPs
$SUDO mkdir /etc/openvpn/ccd
# If easy-rsa exists, remove it
if [[ -d /etc/openvpn/easy-rsa/ ]]; then
$SUDO rm -rf /etc/openvpn/easy-rsa/