This guide was created by a community member and reviewed by us. Firmware and router interfaces may change over time, so some steps may differ depending on your device or version.
Prerequisites:
- UniFi OS version 5.1.15 or above
- UniFi Network App version 10.4.57 or above
Setup
Download the OpenVPN configuration from the website. Make sure it's the Linux
version.The configuration requires a small tweak:
The protocol needs to be forced to IPv4 by modifying the remote setting
toudp4.From:
.... remote no.gw.xeovo.com 1196 udp ....To:
.... remote no.gw.xeovo.com 1196 udp4 ....Open the UniFi console. By default, it is accessible at either
[https://192.168.0.1] or [https://unifi]Click the gear icon to open the settings page
Open the VPN section
Press the "Create New" button within the "VPN Client" box
Make sure configuration type is set to
OpenVPNThe name can be anything you want
Click on the
Upload Configuration Filehyperlink. Upload the edited
configuration from step 2Make sure to select
Networkand thenSelect All. This is very important.Enter your credentials. These are the same you use to login to the website.
Press Create - You're done. To verify connection visit DoesMyVPN.work
Additional (optional) notes
Device and Content Wizards
The Device and Content Wizards allow you to define policies to choose what
is routed through the VPN. They can be very useful if you don't want your whole network
to go through the VPN, but just a few devices, or all the traffic to a specific domain or
region.
In the current version of UniFi Network, there is no any option for these two wizards,
and the author has not managed to make the VPN work without either a device or a content
policy defined. This is why we used Select All in the networks in step 10.
It's possible to edit the policy after it's created to conjure an any option.
To see this, simply click on the VPN name, and then click on the VPN
name again in the Associated Policies section.
Kill Switch
The kill switch option disables internet access in the VPN connection drops. This is
highly recommended.