UC Berkeley Information Security Policy does not allow broad access to a remote desktop from the public Internet. Best practices is to restrict access with the use of the Campus Remote Desktop Gateway service. The following guide explains how to configure a computer to connect to a Windows computer using the Campus Remote Desktop Gateway service.
Table of Contents
- First, Configure a Windows Computer to Allow Remote Access
- Next, Connect to a Remote Windows Computer using Microsoft Remote Desktop
First, Configure a Windows Computer to Allow Remote Access
1a) Enable Remote Desktop Protocol (RDP) Using the BigFix Offer on a Managed Computer (Berkeley Desktop)
If you self-manage your computer, skip to step 1b).
The BigFix offer on Berkeley Desktops will enable RDP, allow the user remote access, and set appropriate firewall rules. If a customer can accept this offer, you do not need to configure remote access manually.
- Look for the blue "b" in your system tray.
- In the BigFix Support Center, search for "remote desktop."
- Select the offer for "Remote Desktop Activation (RDP)" and click Accept. Wait for the offer to complete.
1b) Enable Remote Desktop Protocol (RDP) on a self-managed Computer
Skip this step if you were able to use the self-service offer in step 1a).
Allow RDP Connections
- Click the Windows button and type
sysdm.cpl
to open System Properties. - Enter your administrator credentials to edit properties.
- In the System Properties Window, click the Remote tab and select "Allow remote connections to this computer."
- Click Select Users.
- Add your username to the list.
Configure Windows Defender Firewall to only allow connections from the Campus Remote Desktop Gateway service
- Click the Windows button and type
wf.msc
to open Windows Defender Firewall. - Enter administrator credentials to edit firewall settings.
- Select "Inbound Rules" in the left window, then "Remote Desktop - User Mode (TCP-In)". Under Actions menu on the right, select "Properties."
- On the "General" tab, click the box for "Enabled".
- On the "Scope" Tab, under "Remote IP address", select "These IP Addresses:". Then click the "Add..." button.
- Select "This IP address or subnet:" and enter the subnet address for the Campus Remote Desktop Gateway network: 169.229.164.0/24.
- Select OK for the "IP Address" window and the "Properties" window. If the rule is enabled there will now be a green check mark beside it.
2) Set the Computer to Never Sleep
- Click the Windows button and type "sleep" to reveal and select the "Power & sleep" settings.
- Set screen to lock after 10 minutes and Sleep to "Never."
3) Configure Socreg to Give the Computer a Dynamic DNS Hostname
- Log in to socreg.berkeley.edu and register your device or find your device registration (Socreg device registration guide).
- Add a DDNS hostname, typically the Service Tag of your computer.
Next, Connect to a Remote Windows Computer using Microsoft Remote Desktop
To connect, ITCS recommends using Microsoft Remote Desktop (Windows) or the Windows App (macOS) due to its ease of use, however other Remote Desktop Clients can be configured in a similar way.
1) Configure the Connection Using the Campus Gateway
- Open Microsoft Remote Desktop from the Start menu (Windows) or the Windows App from the Applications folder or a Spotlight Search (macOS).
- Click the "Add PC" button.
- In the "PC name" field, type the address of a remote desktop. Then, in the "Gateway" field, select "Add Gateway..."
- In the "Add a Gateway" pop-up window, enter the Gateway name as "gateway.berkeley.edu" and the Friendly name as "Campus Gateway Service." In the "User Account" field, select "Add User Account..."
- In the "Add a User Account" pop-up window, enter the user's CalNetID in the "Username" field as "campus\CalNetID" and ask them to enter their CalNet passphrase. Enter and easily recognizable "Friendly name."
- Click "Add" in the "Add a User Account" pop-up window. This will return you to the "Add a Gateway" pop-up window
- Verify the user account "Friendly Name" is in the "User Account" field and click "Add."
- Finally, click "Add" in the "Add PC" window to complete the configuration.
2) Connect to the Remote Desktop
- To connect to the computer, double-click the computer icon.
- The user associated with the gateway configuration above will receive a Duo prompt on the Duo phone app. Click "Approve."
- Enter login credentials for the remote PC when prompted.
- You may receive a warning that "The certificate couldn't be verified back to a root certificate." If you are sure you are connecting to the correct PC, click "Continue."
- You have connected to the remote desktop computer!
3) To Save your Credentials for Future Connections
- Right-click a PC icon and click “Edit”. Then click the "User account" dropdown and select “Add User Account.”
- Enter credentials, type a friendly name if you would like, and click Add.
This set of credentials will now be available from the user account dropdown in any PC you are connecting to. - To use these credentials each time you connect to this particular PC, click the save button.