3 openvpn.yml
3.1 The script
- Creates a new user named “vpn” with password-less sudo capabilities
- Makes SSH available on port 4444
3.2 Client configuration
OpenVPN is configured automatically and the client certificate is available at /home/vpn/client.ovpn at your newly installed OpenVPN server. Then follow these steps:
- Transfer this ovpn file to your client (Windows:
C:\Users<USERNAME>\OpenVPN\config) using scp like so:scp -P 4444 vpn@IPADDRESS:/home/vpn/client.ovpn client.ovpn - Install the OpenVPN client.
- Run the OpenVPN client (see the system tray in Windows).
- Click yes if asked to add yourself to the “OpenVPN Administrators” group (administrator password required)