Part 3 - Interface and Gateway

This is Part 3 of the VPN configuration.

Following the cable analogy, we now need to add the network card (Interface), and give it an IP address so we can talk to it (Gateway)

This section will:

  1. Create an Interface for the VPN
  2. Add Gateway(s) to the Interface to allow traffic routing

Create the Interface

  1. Navigate to Interfaces -> Assignments
  2. In the Assign a new Interface section ensure the wg_mullvad_instance is selected
  3. Enter a Description e.g. - WG_MULLVAD

Assign Interfaces

  1. Click Add
  2. [WG_MULLVAD] should appear in the left hand menu
  3. Select the [WG_MULLVAD] interface
  4. Tick Enable Interface

Enable Interface

  1. Set the MTU and MSS to 1420

Interface MTU and MSS

  1. Click Save
  2. At the top of the screen a message will appear, click Apply Changes

Creating the IP Gateway(s)

Next, our Gateway IPs will be configured on the new Interface:

  1. Navigate to Interfaces -> Gateway
  2. Click + to add a new Gateway
  3. Fill in the form as follows:
Field Value Notes
Name MULL_IPV4_GW Anything you prefer, but will be needed later
Interface WG_MULLVAD
Address Gateway_IPV4 from Wireguard config Just the IP, no “/32”
Far Gateway Checked
Disable Monitoring Unchecked
Monitoring IP 4.2.2.2 Any IP on the internet to test with, suggest 4.2.2.2
Description Mullvad IPv4 Gateway Any description you like

Gateway IPv4

  1. Click Save
  2. If you have an IPv6 in your config file, repeat the process to add another gateway, but this time: (Skip this step if there is no IPv6 in your config file)
Field Value Notes
Name MULL_IPV6_GW Same as above, but with IPv6
Interface WG_MULLVAD
Address Family IPv6
Address Gateway_IPv6 from config file No /127 or /128, just the IP
Far Gateway Unchecked
Disable Monitoring Unchecked
Monitor IP 2001:4860:4860::8888 Any IPv6 Address, example is Google DNS
Description Mullvad IPv6 Gateway Any description you like

Enable Interface

  1. Click Apply at the bottom of the screen
  2. Wait at the Overview screen for about about 15-30 seconds to start monitoring
  3. Click Refresh
  4. You should see both new Gateways with a green Status, and a time in ms in the “RTT” column:

Enable Interface

If the Status is fine, this section is complete. The VPN is connected and now has a way to send traffic over it.

The final part is to configure the firewall/NAT to allow and send traffic that way, which takes place in part 4.