O'Reilly logo

Ubuntu Unleashed 2013 Edition: Covering 12.10 and 13.04, Eighth Edition by Matthew Helmke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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=" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required