Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

FIGURE 36.3 Network Manager makes configuring a VPN client easy.


In Settings, you need to enter information about your VPN connection. You
need to enter things like the gateway IP address of the server, your account
username and password, perhaps a group name and group password, and
where to find the certificate authority (CA) file. In some cases, you might
need to click the Advanced button to enter other details, such as the
encryption method, NAT traversal, and more. When you have your
information entered, click Save.


To begin using this VPN connection, use the same menu as in Figure 36.3, but
this time select your VPN connection from the newly created list.


Setting Up a VPN Server


In this section we use OpenVPN to show how to set up a simple server.
Advanced configuration can become quite complex, but it is easy to get
started if you require only a basic server.


Install openvpn from the Ubuntu software repositories.


Next, you need to create a public key infrastructure (PKI) for OpenVPN. Set
up the certificate authority to generate your own certificates and keys:


Click here to view code image
matthew@seymour:~$ sudo mkdir /etc/openvpn/easy-rsa
matthew@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

Free download pdf