Install the University VPN
Before you start
Before you install the University VPN on your device, you'll need to create a network access token.
How to install the University VPN
Once you've created your network access token, follow the instructions for your operating system:
1. Go to the “Start’’ button and then select “Settings”. Search for “VPN Settings”.
2. Click the “Add VPN” button.
3. Complete the form with the following settings:
- VPN Provider: select “Windows (Built-in)”
- Connection Name: enter “Cambridge UIS VPN”
- Server name or address: Enter “vpn.uis.cam.ac.uk”
- VPN Type: IKEv2
- Type of sign-in info: Username and password
- Username: Use the username from the token page
- Password: Use the password from the token page - 16 lowercase letters and digits.
4. Select "Save".
5. Select “Cambridge VPN” and then “Advanced options”.
6. Find “More VPN properties” at the bottom of the page, select “Edit”.
7. Choose the Security tab, then select the following settings:
- Type of VPN: select IKEv2
- Data encryption: Require encryption (disconnect if server declines)
- "Authentication: select "Extensible Authentication Protocol (EAP)” and “Microsoft: Secured password (EAP-MSCHAP v2) (encryption enabled)"
8. Choose the Networking tab, select “Internet Protocol Version 4 (TCP/IPv4)”. Then select “Properties”.
9. Make sure the following settings are selected:
- Obtain an IP address automatically
- Obtain DNS server address automatically
Then select “Advanced” followed by “IP Settings tab”.
10. From the “IP Settings” tab, make sure that “Use default gateway on remote network is checked”. Select “OK” on all open windows.
11. On the task bar, click on the wifi icon. You should then see the VPN as an option on the top right.
12. Click on the VPN icon, select "Cambridge VPN" and then "Connect". You can disconnect from the VPN in the same way.
- Check which version of macOS you're using. If you're not using one of the latest 3 versions of macOS, you may need to upgrade your operating system.
- Download the VPN Configuration profile.
- Find the downloaded profile in your Downloads folder and double-click it to open it
- Depending on your version of macOS either: Open System Settings, choose "Privacy & Security", and then "Profiles" or "Open System Settings," choose "General" and then "Device Management".
- Double-click on the "Cambridge VPN profile" in the Downloaded section.
- Review the downloaded profile then select "Install".
- Authenticate using your login password to install the profile.
- Open System Settings and select "VPN".
- Select the 'i' symbol next to Cambridge VPN
- Fill in your Network Access Token username and password in the Account Name and Password boxes. Tip: we recommend typing them in manually and not copying and pasting, because this can sometimes lead to extra spaces being added.
- Select "OK" to finish the installation.
- Toggle the slider to launch the VPN connection.
- To make the VPN toggle visible in the top menu bar on your Mac, select "Control Centre" in System Settings and set VPN to "Show in Menu Bar" from the drop-down menu.
- Using your iPhone or iPad, collect your network access token from the UIS Tokens Service. Tap and hold the token, and then select "Copy".
- Use Safari to download the VPN configuration file (other browsers won't work). Select "Allow" to download the profile and then "Close".
- Open "Settings" on your device and then select '"Profile Downloaded".
- Review the profile and then tap "Install". You may need to enter your passcode for your device.
- Read the warning and tap "Install" and then "Install" again to confirm.
- You'll see confirmation that the profile has been installed. Click "Done".
- Open "Settings" on your device, then tap "General" and "VPN". Tap on the "i" next to "Cambridge VPN".
- Tap "Edit" in the top right corner.
- Enter the username for the Network Access Token you created for this device – for example, CRSid+device@cam.ac.uk – for the "Account'" username, and manually type in the password for this Network Access Token into the field for the '"Password". Tip: Don't copy and paste the username and password because this can lead to extra spaces being added. Then tap "Done".
- To connect to the VPN, return to the main settings page and slide the VPN slider to the right. The VPN will connect, and display a VPN icon in the status bar at the top of the screen.
- To disconnect, return to "Settings" and slide the VPN slider to the left.
There is currently a bug which means some users are seeing the error message 'No VPN shared secret was provided'. This prevents connections using the standard VPN profile. It affects iOS versions 14 to 17. We've reported it to Apple and it appears to be fixed in iOS/iPadOS version 18.
In the meantime, please use the following instructions to install a profile containing the user certificate and then add in the VPN server details manually.
- Using your iPhone or iPad, collect your network access token from the UIS Tokens Service. Tap and hold on the token, and then select "Copy".
- Use Safari to download the VPN Client Certificate Profile (other browsers won't work). Select "Allow" to confirm the download, and tap "Close" when it's done.
- Open "Settings" on your device, then tap "Profile Downloaded".
- Tap "Install". You may need to enter your passcode for your device. Tap "Install" again to confirm.
- You'll see confirmation that the profile has been installed. Click "Done".
- Open "Settings" on your device, tap "General" and then "VPN". Tap "Add VPN Configuration". Use the following details:
- Type: IPsec
- Description: Cambridge VPN
- Server: vpn.uis.cam.ac.uk
- Account: Enter the username for the Network Access Token you created for this device – for example, CRSid+device@cam.ac.uk Password: Manually type the Network Access Token created for this device earlier (don't copy and paste because this can lead to spaces being added)
- Use Certificate: Tap to enable the slider
- Certificate: Tap and then select "Cambridge VPN client "certificate
- Tap "< Cambridge VPN" or whatever you described it as earlier, to return to the initial configuration page. Tap "Done".
- To connect to the VPN, return to the main settings page and slide the VPN slider to the right. The VPN will connect, and display a VPN icon in the status bar at the top of the screen.
- To disconnect, tap "Settings" and slide the VPN slider to the left.
- Install the strongSwan VPN Client application from the Google Play Store using the link.
- From the home screen go to the Apps Menu.
- Find the new strongSwan application and start it
- You will be presented with the strongSwan status screen, listing the configured VPN profiles (which will initially be empty). Tap the "Add VPN Profile" button at the top
- You will be prompted to give details of the profile (connection). Enter the details as follows and then tap "Save":
- Server: vpn.uis.cam.ac.uk
- VPN type: IKEv2 EAP (Username/Password) (this should be the default option)
- Username: The username for the Network Access Token you created for this device, in the format CRSid+device@cam.ac.uk – for example, abc123+myphone@cam.ac.uk
- Password (optional): The password for the Network Access Token you created for this device
- CA certificate: Select automatically (the default)
- Profile name (optional): Cambridge VPN
- You will be returned to the strongSwan status screen and the new profile will be displayed. Tap on the profile "(Cambridge VPN)" to connect.
- You will receive a warning that the strongSwan VPN Client wishes to set up a VPN connection that allows it to monitor network traffic. This warning is normal and just Android advising you that your network connection will be redirected over the VPN. Tap "OK" to continue with the connection.
- You'll see a notification that you need to confirm the next dialogue to add swanSong to your device's power allowlist so that, when you're using a VPN connection, it can keep running in the background. Tap "OK" and then tap "Allow" to confirm the app can run in the background.
- The connection should now be established and this displayed on the status screen. A key symbol will also be displayed in the status bar at the top of the screen to remind you.
- To disconnect, run the strongSwan application and select "Disconnect" in the status area.
Read more about configuring the UIS VPN on Ubuntu 16.04 LTS and 18.04 LTS Desktop.
Issues with connecting
If you are experiencing problems with connecting to a VPN, please contact the Service Desk via live chat. Include the following details:
- which VPN you were using
- the time at which you tried to connect
- your current IP address (which you can find at https://myip.uis.cam.ac.uk/)