skip to primary navigationskip to content

Department of Computer Science and Technology

IT

 

Network Access

This page explains how to connect to the Department of Computer Science and Technology (CST) and University networks, whether you’re on site or connecting remotely. Open the section that applies to your setup, then follow the steps for your operating system.

Need help? Email [Javascript required]

On-Site at the William Gates Building (WGB)

Wired Networking

The Computer Lab network connects to the Cambridge University Data Network (CUDN), which in turn connects to JANET and the wider Internet.

All machines on this network are subject to the University Information Services Committee (ISC) conditions. Please do not perform any port scanning or security probing, even on your own machines. If your research requires something that might look unusual on the network, please contact [Javascript required] first to avoid being blocked from the network.

What the sockets look like

  • Most offices have 4 RJ45 network sockets in the floor box, alongside the power sockets.

(image)

  • A few areas without a false floor have the sockets on wall plates instead.

(image)

Important: Network sockets may not be enabled by default or may be assigned to a different network segment, than the one you need.

If you need to change the socket you are using, please contact [Javascript required] to enable your port appropriately. If you are bringing private equipment into the department, you will need to register it for network use. This can be done by filling out this web form. This will need to be filled out while you are connected to either the internal-CL WiFi (described below) or a department-specific VPN such as VPN2 or the CL VPN, which are both discussed in the VPN section below.

Getting a socket enabled

New machine — first-time connection

If you have purchased a device through the IT Services team, we will have already registered the device on our inventory and contacted you regarding floor port location and other details. Otherwise, to register a personally owned device:

  1. Make sure you are on an internal department network or connected via a CL VPN.
  2. Go to the Register a new machine owned by me web form.
  3. Fill in the requested details: machine name, inventory number (if known), and floor box location.
  4. Wait for confirmation that the port is active.

Moving an existing registered machine to a different socket

Email [Javascript required] with:

  • The inventory number or name of the machine
  • The floor box port you would like it moved to

No longer need the connection?

Email [Javascript required] so the switch port can be freed for others.

Extra options

Wi-Fi

There are several Wi-Fi networks to connect to at the Department. Below is a brief description of each network. Scroll down for connection instructions.

Available networks

Network / SSID Who it’s for What it gives you
eduroam Cambridge users and visitors from participating institutions. Full CUDN / JANET connectivity. It does not provide internal access to the department unless attached to a VPN. Advisable if you spend time in/near colleges.
Internal-CL Department staff and students Internal services not reachable on eduroam. Identical access as a wired connection.
UniOfCam-Guest Visitors, casual use, IoT devices Basic internet access for visitors to the university.
UniOfCam-IOT This is for small personal devices that cannot sign in to UniOfCam-guest normally. Examples are Raspberry Pis, Apple TVs, smart speakers, etc. Basic Internet access.
Govroam Public Sector staff from participating institutions. Needs to be set up prior to arrival and cannot be set up here.

*Other networks exist but these are for specialist purposes.*

Eduroam

eduroam is available throughout the University and at thousands of partner institutions worldwide through JANET Roaming. This service is managed by The University Information Service (UIS).

Setup

  • Cambridge users: You will need to create a network access token from the UIS Network Access Token Website. Please note, you will need a separate token for each device and each purpose. For example, if you add both your phone and laptop to both eduroam and the UIS VPN, you will need a total of four tokens.
    • Create a new token username by adding something meaningful to your device in the Device box and add a description. Then click “Create”.

(image)

  • Follow the setup guide provided centrally by the University Information Services (UIS). Connect to eduroam WiFi.
  • Visitors from other institutions: use your home institution’s eduroam credentials. If you need help, please contact your home institution’s IT support.

Internal-CL

Internal-CL is a Department-local wireless network. It uses the same type of network access token as eduroam but connects you to the Department’s internal network, where some services are available that are not reachable via eduroam.

Setup

  • To create your network access token credentials, you will need to enter the UIS Network Access Token Website. Please note, you will need a separate token for each device and each purpose. For example, if you add both your phone and laptop to both eduroam and the UIS VPN, you will need a total of four tokens.
    • Create a new token username by adding something meaningful to your device in the Device box and add a description. Then click “Create”.

(image)

Windows / Linux

You can then download the Internal-CL profile installer. This may be captioned as ‘eduroam’ but this is for Internal-CL. Please then follow the setup guide provided centrally by the University Information Services (UIS). Connect to Eduroam WiFi.

macOS / iOS

Please use the profile provided by UIS here.

Once you are prompted for credentials, please enter the details provided. Please note that the username does NOT need to be fully qualified, as per the example below.

(image)

  • For advanced users:

Manual configuration details can be obtained from UIS’s eduroam documentation. Please note, some adaptation may be required.

Guest, casual, and IoT networks

WGB

  • WGB: The WGB provides departmental visitors with Wi-Fi without the need for registration. It is a limited service, so please do not use it when alternative Wi-Fi is available, to avoid the need for restrictions. It is also subject to change and thus is unsuitable for long-term use.
  • Setup is simply to join the network.

UniOfCam-IOT

UniOfCam-Guest

  • UniOfCam-Guest: offers an internet connection for visitors to the University and members of the public via a commercial ISP, but requires registration with either an email or social media account. The network is also available across the University and certain social areas such as the Mill Pond and Parker’s Piece and museums.
  • Setup instructions are provided by UIS here.

Can’t connect?

 

Remote Access - VPN

A VPN lets your personal laptop or home computer appear as if it is on the University or Department network, even when you are away. You will typically use it to:

  • Get past firewall and access-control restrictions that apply to external connections.
  • Access IP-authenticated services, such as online journal subscriptions, that only respond to University IP addresses.
  • Encrypt your traffic when connecting over an untrusted network, such as hotel or café Wi-Fi while travelling.

VPN2 is the Department’s in-house VPN and the default choice for most Department staff and students. It is a separate service from the UIS-managed VPNs described in the sections below.

Security note

When connected, your machine behaves as though it is directly on the CUDN. That means:

  • You are subject to the CUDN and JANET acceptable use policies.
  • All VPN connections are logged against your CRSid, and traffic can be traced back to you.
  • Make sure your anti-virus software is up to date and protect your credentials from unauthorised use.

Which VPN should I use?

  VPN2 UIS CST VPN UIS Generic Cam VPN
Run by CST UIS, CST tailored UIS, standard
IP address you get CUDN, split-tunnel Global CST IPv4 CUDN-private, NAT
Best for Most people, day-to-day You need a CST global IP General CUDN access
External traffic Unaffected, split-tunnel Direct, no NAT Through NAT gateway

If you are unsure, start with VPN2. Only use the UIS options if you have a specific reason to.

VPN2 (Department in-house VPN)

Getting your VPN credentials

Authorised Department members can set or reset their VPN username and password at:

https://vpnpassword.cl.cam.ac.uk

You will need your CRSid. If you have never set a VPN password before, this is the page to do it. Your VPN username is your CRSid followed by a device ID, for example: spqr2-laptop.

(image)

It is not your email address.

Windows 11

Option A: Quick setup using PowerShell

If you prefer a one-step setup, open a command prompt:

  1. Press Win + R
  2. Type cmd
  3. Press Enter

Then run:

Powershell.exe -Command "& {Add-VpnConnection -Name 'CL VPN 2' -ServerAddress 'vpn2.cl.cam.ac.uk' -TunnelType 'Ikev2' -AuthenticationMethod 'Eap' -EncryptionLevel "Required" -RememberCredential -SplitTunneling; Set-VpnConnectionIPsecConfiguration -ConnectionName 'CL VPN 2' -Force -CipherTransformConstants AES128 -EncryptionMethod AES128 -IntegrityCheckMethod SHA256 -AuthenticationTransformConstants SHA256128 -DHGroup ECP384 -PfsGroup ECP384}"

This creates a fully configured split-tunnel IKEv2 connection. You can skip straight to Connecting below.

Option B: Manual setup using the Settings app

Step 1 — Add the VPN connection

  1. Open Start → Settings → Network & Internet → VPN
  2. Click the + button to add a VPN connection
  3. Fill in the following fields:
Field Value
VPN Provider Windows (built-in)
Connection name Computer Lab VPN2
Server name or address vpn2.cl.cam.ac.uk
VPN type Automatic
Type of sign-in info Username and password
  1. Do not enter your username or password yet
  2. Tick Remember my sign-in info
  3. Click Save

(image)

Step 2 — Configure security and split-tunnel settings

  1. Click Change adapter options or Change adapter settings
    1. Alternative: press Win + R, type ncpa.cpl, press Enter
  2. Right-click Computer Lab VPN2
  3. Choose Properties

(image)

  1. Go to the Security tab:
Setting Value
Type of VPN IKEv2
Data encryption Require encryption (disconnect if server declines)
Authentication Use Extensible Authentication Protocol (EAP)

(image)

  1. Go to the Networking tab
  2. Select Internet Protocol Version 4 (TCP/IPv4)
  3. Click Properties
  4. Click Advanced
  5. In IP Settings, make sure “Use default gateway on remote network” is NOT ticked

(image)

This is what makes it a split tunnel. Only University-bound traffic goes through the VPN; your normal internet connection is unaffected.

  1. Click OK
  2. Repeat the same steps for Internet Protocol Version 6 (TCP/IPv6)

(image)

  1. Click OK to close all open windows

Connecting

To connect to the VPN, left-click on the network logo in the system tray.

(image) (image)

Select VPN

(image)

Select which VPN and click Connect.

The Connect button will turn to disconnect upon connection. Click this to disconnect when you are finished.

Alternatively:

  1. Go to Start → Settings → Network & Internet → VPN
  2. Click Computer Lab VPN2
  3. Click Connect
  4. Enter your details:

MacOS

VPN2 works on all recent versions of MacOS and iOS.

VPN Settings

When creating the VPN connection, use the following settings:

Setting Value
VPN Type IKEv2
Server vpn2.cl.cam.ac.uk
Remote ID vpn2.cl.cam.ac.uk
Local ID Leave blank
User Authentication Username
Username The full username used to obtain your VPN password (for example: spqr2-ipad)
Password Obtain your VPN password from https://vpnpassword.cl.cam.ac.uk/
Proxy Off (if prompted)

Note: When copying and pasting your VPN password, ensure that no extra spaces are included at the beginning or end.

Step 1 — Add the VPN Connection (macOS 14 and later)

  1. Open System Settings.
  2. Select Network.
  3. Click the ⋯ (More) button and choose Add VPN Configuration → IKEv2.
  4. Enter the following information:
Setting Value
Display Name CL VPN2
Configuration Default
Server Address vpn2.cl.cam.ac.uk
Remote ID vpn2.cl.cam.ac.uk
Local ID Leave blank
  1. Configure authentication using the settings listed in the VPN Settings section above.

(image)

  1. Click Create.

(image)

For additional guidance, see Apple's documentation on adding VPN connections in macOS.

Step 2 — Connect to the VPN

  1. Open System Settings → Network.
  2. Select CL VPN2 from the list of network services.
  3. Click Connect.
  4. Enter your username and VPN password if prompted.

Once connected, the VPN status will show as Connected.

(image)

Optional — Show the VPN Status in the Menu Bar

To make it easier to connect and disconnect:

  1. Open System Settings.
  2. Go to Control Centre.
  3. Under Menu Bar Only, locate VPN.
  4. Select Show in Menu Bar.

This adds a VPN status icon to the menu bar, allowing you to connect or disconnect without opening System Settings.

(image)

iPhone and iPad (iOS/iPadOS)

  1. Open Settings → General → VPN & Device Management → VPN.
  2. Tap Add VPN Configuration.
  3. Select IKEv2 as the VPN type.
  4. Enter the settings listed in the VPN Settings section above.
  5. Tap Done.
  6. Use the VPN toggle to connect.

(image)

Once configured, you can reconnect at any time from Settings → VPN.

Linux

Configure VPN2 on Linux

VPN2 uses the IKEv2 protocol and can be configured on most modern Linux distributions using strongSwan. If your desktop environment uses NetworkManager (for example Ubuntu, Linux Mint, Fedora Workstation, or similar), the graphical method below is recommended.

This method is suitable for most desktop Linux systems.

Step 1 — Install the required software

  1. Obtain your VPN password from:

https://vpnpassword.cl.cam.ac.uk/

  1. Install the strongSwan and NetworkManager VPN packages.

On Ubuntu and Debian-based systems:

Shell

sudo apt install network-manager-strongswan strongswan-charon \
libcharon-extra-plugins libcharon-extauth-plugins
  1. Restart NetworkManager or reboot your computer if the VPN option does not appear in Settings.

Step 2 — Add the VPN connection

  1. Open Settings → Network.
  2. Under VPN, click + Add VPN.
  3. Select IPsec/IKEv2 (strongSwan).

If this option is not available, verify that all packages listed above are installed.

(image)

  1. Enter the following settings:
Setting Value
Name Computer Lab VPN2
Server Address vpn2.cl.cam.ac.uk
Username The username used to obtain your VPN password (for example: spqr2-laptop)
Password Your password from vpnpassword.cl.cam.ac.uk
Request an Inner IP Address Enabled

Leave all other settings at their default values unless instructed otherwise.

(image)

Step 3 — Connect

  1. Open Settings → Network.
  2. Select Computer Lab VPN2.
  3. Click Connect.

Once connected, VPN traffic to University networks will be routed through VPN2.

Method 2 — Manual Configuration with ipsec.conf

This method is intended for systems that do not use NetworkManager or where command-line configuration is preferred.

Step 1 — Install strongSwan

On Ubuntu 22.04 and similar distributions:

sudo apt install strongswan-charon \
libcharon-extauth-plugins \
libcharon-extra-plugins

Step 2 — Install CA certificates

As of November 2025, strongSwan requires access to your system CA certificates.

On Ubuntu and Debian:

sudo ln -st /etc/ipsec.d/cacerts/ /etc/ssl/certs/*.pem

Step 3 — Configure the VPN connection

Edit /etc/ipsec.conf and add the following connection:

conn CL
keyexchange=ikev2
reauth=no
left=%any
leftid="YOUR_USERNAME"
leftauth=eap
leftsourceip=%config4,%config6
leftfirewall=yes
right="vpn2.cl.cam.ac.uk"
rightid=%any
rightsendcert=never
rightsubnet=128.232.0.0/16,129.169.0.0/16,131.111.0.0/16,192.18.195.0/24,193.60.80.0/20,193.63.252.0/23,172.16.0.0/13,172.24.0.0/14,172.28.0.0/15,172.30.0.0/16,10.128.0.0/9,10.64.0.0/10,2001:630:210::/44,2a05:b400::/32
auto=add

Replace YOUR_USERNAME with the full username used to obtain your VPN password (for example: spqr2-laptop).

Step 4 — Add your credentials

Obtain your VPN password from:

https://vpnpassword.cl.cam.ac.uk/

Add the following line to /etc/ipsec.secrets:

YOUR_USERNAME : EAP "YOUR_PASSWORD"

(image)

Step 5 — Restart strongSwan

Depending on your distribution:

sudo service strongswan restart

Step 6 — Connect and disconnect

Connect:

sudo swanctl --initiate --child CL

Disconnect:

sudo swanctl --terminate --ike CL

Method 3 — Manual Configuration with swanctl

Some Linux distributions use the newer swanctl configuration framework instead of ipsec.conf.

Step 1 — Install CA certificates

As of November 2025, system CA certificates must be made available to swanctl.

On Ubuntu and Debian:

sudo ln -st /etc/swanctl/x509ca/ /etc/ssl/certs/*.pem

Step 2 — Create the VPN configuration

Create a file such as:

/etc/swanctl/conf.d/cl.conf

with the following content:

connections {
    CL {
        version=2
        remote_addrs=vpn2.cl.cam.ac.uk
        vips=0.0.0.0,::
        send_certreq=0

        local-1 {
            auth=eap-mschapv2
            eap_id=YOUR_USERNAME
        }

        children {
            CL {
                remote_ts=128.232.0.0/16,129.169.0.0/16,131.111.0.0/16,192.18.195.0/24,193.60.80.0/20,193.63.252.0/23,172.16.0.0/13,172.24.0.0/14,172.28.0.0/15,172.30.0.0/16,10.128.0.0/9,10.64.0.0/10,2001:630:210::/44,2a05:b400::/32
            }
        }
    }
}

Replace YOUR_USERNAME with the username used to obtain your VPN password.

Step 3 — Add your credentials

Obtain your VPN password from:

https://vpnpassword.cl.cam.ac.uk/

Add the following line to /etc/ipsec.secrets:

YOUR_USERNAME : EAP "YOUR_PASSWORD"

Step 4 — Restart strongSwan

sudo service strongswan restart

Step 5 — Connect and disconnect

Connect:

sudo swanctl --initiate --child CL

Disconnect:

sudo swanctl --terminate --ike CL

DNS Configuration Notes

If you connect using strongSwan (ipsec or swanctl) while also using NetworkManager to manage your other network connection, you may encounter DNS resolution issues.

On some distributions, configuring NetworkManager to use systemd-resolved resolves this problem.

Add the following to:

/etc/NetworkManager/NetworkManager.conf
[main]
dns=systemd-resolved

After making the change, restart NetworkManager or reboot the system.

Android

The simplest way to add VPN2 on Android is to add the strongSwan VPN client:

https://play.google.com/store/apps/details?id=org.strongswan.android&hl=en_GB&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1

Installation

  1. Obtain your VPN password from:

https://vpnpassword.cl.cam.ac.uk/

  1. Download the VPN profile on your device from vpnpassword.cl.cam.ac.uk/clvpn.sswan and open it.
  2. Run the app and follow the on-screen instructions to connect.

UIS VPN

This VPN service is provided by UIS and is not managed by the department. It will provide access to the university distributed network (UDN) for university-wide internal facilities such as finance, HR, and others.

Instructions for connecting from a range of clients are provided by the UIS here. You can test your VPN connection using https://myip.uis.cam.ac.uk/.

If you do experience any issues with this VPN, please contact the UIS service desk, in the first instance, as we can only provide limited help.

Managed VPN

The UIS CST VPN service is intended for users who require internal access and cannot use VPN2. It is managed by UIS.

You will require a UIS network token, which can be made here.

Configuring clients

Configuring client devices to use a Managed VPN Service is largely identical to configuring the general UIS VPN Service above: users can simply follow the regular instructions for their client device and operating system, making changes at the appropriate point during the setup:

  1. The hostname of the VPN server changes from vpn.uis.cam.ac.uk to vpn.cl.cam.ac.uk (i.e. the "uis" part changes from UIS to CL).
  2. The server certificate is different (as it contains the hostname of the VPN server) and an alternative one must be installed on platforms which require it. Currently this applies only to the built-in client on Android and some Linux distributions, including Ubuntu.
  3. Apple devices which use a connection profile — both iOS and macOS (although not Yosemite, due to a bug) — require a different profile due to the hostname being different.

Different platforms require different settings and no platform will require all of the above settings to be different.

A list of Managed VPN Services, their hostnames, certificates and Apple profiles is available on a separate page.