VPN client for DietPi

OK… I figured out how to get OpenVPN Client setup for DietPi.


Step 1
Set up your OpenVPN Server

Step 2
Login as root on to your DietPi

Step 3 Type-
apt-get update

Step 4 Type-
apt-get install openvpn

Step 5 – Configure the OpenVPN Client
In /etc/openvpn/ create a new text file named – (Your sever name).ovpn

Paste this text in - PLEASE MAKE CHANGES-----

How to setup OpenVPN client?

1. Install OpenVPN software on your platform.

2. Double click XXXX.ovpn file to create new connection profile.

3. Type username and password while connection.

client
dev tun
script-security 3
remote (YOUR IP ADDRESS X.X.X.X) 1194
resolv-retry infinite
nobind
auth-nocache
auth-user-pass
remote-cert-tls server
reneg-sec 0
cipher AES-128-CBC
tls-cipher TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384:TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-256-CBC-SHA:TLS-DHE-RSA-WITH-AES-128-CBC-SHA
comp-lzo
proto udp
explicit-exit-notify 1

-----BEGIN CERTIFICATE-----
(THIS IS LOCATED ON YOUR SERVER CALLED YOURSERVERNAME.CA)
-----END CERTIFICATE-----

Step 6
Copy your CA from the server to the client
On the client - located at - /etc/openvpn/client/

Step 7 Type-
service openvpn restart

Step 8 (Just to make sure you have connectivity on both sides)
On the client, try and ping your server

Step 9 Type-
openvpn --config clientname.ovpn

Step 10
Enter your user name and password

Step 11
When OpenVPN shows the message “Initialization Sequence Completed“, then you are connected.