#
Install private VPN onto raspberrypi
- Install dependencies
$ sudo apt-get install openvpn git dhcpcd5 tar wget grep iptables-persistent dnsutils expect whiptai
- Install PiVPN
$ curl -L https://install.pivpn.io | bash
Use your router IP as DNS and use custom DNS.
- Adding Users
$ pivpn add
#
Update CRL
All commands should be run with sudo!! Guide to extend validity of CRL days, The guide to update CRL is based on: Guide
Check Logs in /var/log/openvpnas.log
.
To backup crl.pem file, run the following command
mv crl.pem crl.pem.back
I have used EasyRSA to generate CRL in the past, so I was able to fix it by using the following commands. Change working directory to easy-rsa
cd easy-rsa
then run
./easyrsa gen-crl
Now you will see the location of the newly created crl file. we are going to copy this file to /etc/openvpn (Make sure you use the exact file location to copy from)
cd ..
cp -pr /etc/openvpn/easy-rsa/pki/crl.pem .
Finally restart openvpn service
service openvpn restart