OpenVPN client on Debian

Now that the server is ready, let’s switch on the client side !

1. Software installation

Install OpenVPN :

2. Configuration

Copy the client configuration sample in the working directory :


Here is my configuration:

Replace XXX.XXX.XXX.XXX by the IP of the OpenVPN server.

Create a folder to store the keys and certificates :

Download the ca.crt file from the server:

Download the client.key file from the server:

Download the client.crt file from the server:

Then we can try to start the client:

Here is the output :

To allow your pi to connect automatically after a reboot, edit the following file as below :

Then uncomment the line :

One thought on “OpenVPN client on Debian”

Leave a Reply

Your email address will not be published. Required fields are marked *