OpenVPN Client on Raspberry Pi

In a previous article I described step by step how to install an OpenVPN server on a Raspberry Pi. In this article I will explain how to install the OpenVPN client and how to start a VPN connection.

First, install OpenVPN with the following command:

sudo apt-get install openvpn

now place the “.ovpn” file generated by the OpenVPN server in the following path:

/etc/openvpn/

Now, first of all, start the OpenVPN service:

sudo /etc/init.d/openvpn start

If the OpenVPN service fails to start, take a look at the log file with the following command:

tail /var/log/daemon.log

To start the VPN connection, run the following command:

sudo openvpn /etc/openvpn/Client_1.ovpn

where, in my case, the configuration file is named Client_1.ovpn

Enjoy!

Leave a Comment

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

Scroll to Top