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=" ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access