I have had trouble deploying OpenVPN with Anarres, so I made a new Ansible script to install OpenVPN directly on Linux. The source I have used have been this one.
Basically the steps are:
- Install OpenVPN and easy-rsa
- General the certificates of the server (CA, CRT, KEY and PEM)
- Generate the certificates of the client (CA and CRT)
- Generate the TLS key with OpenVPN
- Create the configuration of openvpn
- Start it