Setting Up a VPN Server

We use OpenVPN to set up a simple server. Advanced configuration can become quite complex, but it is easy to get started if you only require a basic server.

Install openvpn from the Ubuntu software repositories.

The next several steps create a public key infrastructure (PKI) for your OpenVPN.

Set up the certificate authority to generate your own certificates and keys.

matthew@seymour:~$ sudo mkdir /etc/openvpn/easy-rsamatthew@seymour:~$ sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /etc/openvpn/easy-rsa/

Enter your specific details by editing /etc/openvpn/easy-rsa/vars and adjusting the following:

export KEY_COUNTRY="us"export KEY_PROVINCE="IA"export KEY_CITY="Iowa City"export KEY_ORG="Your Company"export KEY_EMAIL=" ...

Get Ubuntu Unleashed 2013 Edition: Covering 12.10 and 13.04, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.