Description
This test verifies that Fedora can successfully establish and use a VPN connection through the NetworkManager graphical interface. It checks that the connection can be configured, established, and used to route network traffic.
The test does not cover setting-up a VPN server to establish the connection. Any VPN provider that you have an access to is fine to use.
We assume that most users attempting this test case already know how to use to their VPNs, so we only provide basic assistance to those that do not have a preferred way or VPN method and they can follow the steps here to connect to a third party OpenVPN server.
Setup
- Install a Fedora flavor that you want to test, e.g. Workstation, KDE Live, Server.
- Make sure that your computer is connected to the Internet and your connection works.
- If you do not have a VPN provider, you can use a free OpenVPN account from a third party service. If you do, you can skip the following steps and follow the instructions in How to test section.
- Open the VPNBook web page.
- VPNBook offers several VPN methods. Choose the OpenVPN by opening the corresponding link.
- Select one of the available servers.
- Download the
.ovpnconfiguration file with the connection details. - Copy the username and the password from the VPN Credentials section.
How to test
Depending on your environment and the selected VPN, the testing instructions may vary. The following steps serve like a general approximation of the process:
- Open system settings (Gnome Control Center or KDE System Settings) and navigate to the networking tab (Network or Wi-Fi and Networking).
- Add a new connection and from the list of option select the one that fits your needs best. If you have an
.ovpnconfiguration file, import it. - In the VPN configuration, provide the login name and password for your VPN and save the configuration.
- Verify that the new VPN connection has been added to the list of existing VPNs.
- Start the newly created VPN connection and verify that it successfully connects.
- If you are on Fedora flavor with no desktop environment, use the configuration file to start the VPN connection using
sudo openvpn <configuration_file>. You will be asked for the credentials. When connection is established successfully, you will be able to see Initialization Sequence Completed at the end of the output. At this point, you are connected to the VPN. - When you have looked for the results, close the connection.
- Try starting and closing the connection for several times.
Expected Results
- The VPN configuration can be created without errors.
- A new networking device, e.g.
tun1exists to route the VPN traffic when VPN is switched on. After it is switched off, it disappears. Check withip a. - On Gnome or KDE, the correct status of the VPN connection is indicated on the panel.
- Activating the VPN connects successfully within a few seconds.
- Internet access continues to function while the VPN is enabled.
- The external IP address changes if the VPN provider routes traffic through a different endpoint.
- Disconnecting the VPN restores the normal network route.
Optional
- Verify DNS resolution works while the VPN is active.
- Verify that reconnecting to the VPN multiple times works reliably.
- Check that the VPN reconnects after network interruption (for example WiFi reconnect).
