OpenVPN Connection

The following is to connect to a VPN through OpenVPN. Works for Mullvad and .ovpn files.
Information sourced from this video.

Program Installation

Use pacman -Sy to install the following programs:

  1. networkmanager
  2. networkmanager-openvpn
  3. network-manager-applet
  4. openvpn

Setup

Run the following code:

  1. sudo systemctl enable NetworkManager.service
  2. sudo systemctl start NetworkManager.service
  3. sudo mkdir -p /etc/sysctl.d
  4. sudo vim /etc/sysctl.d/40-ipv6.conf
  5. Add the following lines to 40-ipv6.conf
    net.ipv6.conf.all.disable_ipv6=1
    net.ipv6.conf.default.disable_ipv6=1
    net.ipv6.conf.lo.disable_ipv6=1
    net.ipv6.conf.tun0.disable_ipv6=1
  6. sudo systemctl restart systemd-sysctl.service
  7. sudo systemctl restart NetworkManager.service

Add VPN Files

.ovpn:
nmcli connection import type openvpn file YOURFILE.ovpn

Mullvad:
Download a zip file from the Mullvad website then unzip it.
Run this code nmcli connection import type openvpn file mullvad_no_osl.conf
In the settings menu for the VPN (located in the NetworkManager applet) change add the CA certificate to the zip file downloaded from the Mullvad website.
The password for the VPN connection will be 'm'.