Skip to content
Menu

Guides

Setting up a VPN on an iPhone or iPad

Here's how to set up a VPN to your business network on an iPhone or iPad: with Teleport or WireGuard on a UniFi gateway, each with its own app, or manually with IKEv2 via Settings > General > VPN & Device Management. Old PPTP guides haven't worked since iOS 10.

Updated on 29 November 2026

The built-in VPN on an iPhone and iPad supports three types of connection: IKEv2, IPsec and L2TP. PPTP, the type in many old guides (you can recognise it by the "Encryption Level" field), was removed by Apple in 2016 with iOS 10 and macOS Sierra. Existing PPTP profiles disappeared with that update. If your instructions still mention PPTP, they no longer work.

Turning a VPN on or off, changing it or deleting it

If the VPN is already set up on your iPhone or iPad, you turn it on or off under Settings > General > VPN & Device Management > VPN. Tap the Info button (i) next to the VPN to change its details, such as the server, your account or the password. You can delete the VPN there too; your iPhone asks you to confirm. With Teleport you turn the connection on and off in the WiFiman app, with WireGuard in the WireGuard app. If the VPN comes from a configuration profile, you delete it by deleting that profile. The settings, apps and data that belong to the profile disappear with it. If it's a work iPhone, ask your administrator first.

Business VPN or privacy VPN

With a business VPN, your iPhone makes a secure connection to the network at your office or home. When you're away, you can then reach the same things as at work, such as the NAS, internal software or the camera system. The VPN server runs on your own router or firewall.

A privacy VPN is an app from a paid service. It sends your internet traffic through that service's servers, so the WiFi network you're on can't see what you do and websites see a different IP address. It doesn't get you into your own network. The provider's app handles the settings itself.

This guide is about the business VPN.

What you need

  • A VPN server on your network. That is usually the router or firewall, for example a UniFi gateway.
  • A public IP address on your internet connection. According to Ubiquiti, most VPNs need one; Teleport is the exception. Some providers share one IP address between several customers (CGNAT). In that case your iPhone can't reach the office router from outside.
  • Ideally a static IP address, so the server address in your iPhone doesn't change.
  • The details from your administrator: the type of VPN, the server address and an account with a password or certificate. Or a ready-made profile or a QR code.

UniFi gateway: Teleport or WireGuard

If you have a UniFi gateway or UniFi Cloud Gateway, it has two modern VPNs built in. Ubiquiti recommends Teleport for phones and WireGuard for laptops and desktops. WireGuard also works on an iPhone, with the WireGuard app.

Teleport via the WiFiman app

Teleport is the Ubiquiti VPN you don't have to configure on your phone. It uses WireGuard and doesn't need a public IP address. The connection also works when the gateway and the iPhone are both behind NAT.

  1. The administrator turns on Teleport in UniFi Network, in the VPN settings, and creates an invitation for you.
  2. You open the invitation on your iPhone. If the WiFiman app isn't on it yet, the link asks you to install it. Then tap the link again.
  3. The VPN is now in WiFiman. You turn the connection on and off there.

An invitation is valid for 24 hours and works on one device at a time. Teleport sets your iPhone's DNS servers to those of the gateway. In some cases the gateway needs an IPv6 connection on the internet port. The administrator can revoke your access later in the list of devices.

WireGuard with a QR code

  1. In UniFi Network, the administrator turns on the WireGuard server (by default on UDP port 51820) and creates a client for you.
  2. You install the WireGuard app from the App Store.
  3. In the app you add a tunnel by scanning the QR code the administrator gives you.
  4. You turn the tunnel on in the app.

WireGuard needs a public IP address. If the UniFi gateway sits behind another router, that router must forward UDP port 51820 to the gateway.

L2TP

UniFi also has L2TP, but Ubiquiti advises against it. It is slower and less secure than Teleport and WireGuard, and it causes problems when the gateway is behind NAT. More and more operating systems are dropping it.

Adding a VPN manually

If you use a different router or firewall, or your administrator has given you the individual settings, you add the VPN yourself:

  1. Open Settings > General > VPN & Device Management.
  2. Tap VPN and then Add VPN Configuration.
  3. Under Type, choose IKEv2, IPsec or L2TP, whichever your administrator tells you to.
  4. Enter a description, the server address (the external IP address or a hostname) and your account with a password or certificate. With IKEv2, the iPhone also asks for a Remote ID and a Local ID; you get those from the administrator.
  5. Tap Done and turn the VPN on with the switch on the same screen.

If you've been sent a configuration profile, for example by email, tap it to install it; you don't need to enter anything. You can find installed profiles under Settings > General > VPN & Device Management.

All traffic through the VPN, or only the office network

A VPN can work in two ways. If all your internet traffic goes through the VPN, your browsing also runs through the office. That is safer on public WiFi, but slower, and it puts extra load on the office's internet connection. If only the traffic for the office network goes through the VPN, the rest goes over whichever connection you're on at the time.

In older guides, such as the previous version of this page, this is the "Send All Traffic" switch. With WireGuard, the administrator sets this choice in the configuration (under AllowedIPs).

If the connection doesn't work

  • Test on mobile data, not on the office WiFi. You're already inside the network there, so the test tells you nothing.
  • Ask your provider whether your internet connection has a public IP address and isn't behind CGNAT.
  • If an old L2TP profile no longer works, switch to Teleport or WireGuard.

Help with your VPN

If you'd like a VPN set up on your UniFi network, or the connection doesn't work, see UniFi support and business networks. If you need a static IP address for the VPN, we'll discuss that as part of business internet. You can also contact us directly.

Sources, checked on 29 November 2026: Apple, VPN on iPhone and iPad, Apple, configuration profiles, Ubiquiti, Teleport, Ubiquiti, WireGuard, Ubiquiti, L2TP, Ubiquiti, VPN and public IP address.

Also read

Get to know us

Ready to get to know us?

Tell us what you need. The first conversation is free, with no strings attached.

Back to top