1
1
mirror of https://github.com/namibia/openvpn-install.git synced 2024-12-22 14:58:54 +00:00

Remove revoked client from ifconfig-pool-persist

This commit is contained in:
angristan 2018-09-24 15:24:31 +02:00
parent 0f117352c7
commit e4a9851b4f

View File

@ -1040,6 +1040,7 @@ function revokeClient () {
chmod 644 /etc/openvpn/crl.pem
find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete
rm -f "/root/$CLIENT.ovpn"
sed -i "s|^$CLIENT,.*||" /etc/openvpn/ipp.txt
echo ""
echo "Certificate for client $CLIENT revoked."