2
0
mirror of https://github.com/angristan/openvpn-install synced 2025-08-31 06:05:20 +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."