VPN access

Android IPSEC Android OpenVPN Windows VPN Windows OpenVPN Eduroam Windows Eduroam Windows OpenVPN Eduroam Linux Eduroam MacOS OpenVPN MacOS

VPN Overview

Virtual Private Network (VPN) creates a secure connection, called a tunnel, between your computer and the DEI campus. This tunnel allows secure communications and the ability to extend local network access to offsite locations.

When do I need a VPN connection?

  • If you are off-site and need to access a service that is restricted by IP address (e.g., www.springerlink.com).
  • If you are accessing a service which exists only on a restricted subnet.

Cannot connect in Windows?

Sometimes some home routers and popular Anti-Virus block L2TP/IPSec connections preventing you from connecting to the VPN Service properly.

If you are having problems, try OpenVPN for Windows.

# Notice 2021 - Mac OSX 11 Big Sur (or a higher version)

If your Mac runs OSX 11 Big Sur (or a higher version), then OpenVPN doesn't work due to limitations imposed by System Integrity Protection. Disabling SIP will make OpenVPN work again, but it's a security risk and the Helpdesk does not advise this. Alternatively, you can use IPSEC + L2TP mode, which works on the new version of MacOS.

Apple Mac OSX (IPSEC + L2TP)

1. Open Network Preferences: System Preferences -> Network

Click the "+" button. Select "VPN" as interface and "L2TP over IPSec" as VPN type.

Name the service and click "Create".

2. Type Server Address: gw-vpn.dei.uc.pt and Account Name (DEI username).

Click "Advanced...".

3. Enable "Send all traffic over VPN connection". Click OK. Then click "Authentication Settings...".

4. Enter DEI password and Shared Secret: dei. Then click "Connect".

Mac OSX (OpenVPN)

Windows 7/10 (L2TP/IPSec)

1. Go to Control Panel → Network and Sharing Center → Set up a new connection or network

Select "Connect to a workplace"

Windows 10: Control Panel → Network and Internet → Network and Sharing Center

2. Select "Use my Internet connection (VPN)"

3. Specify the following:

  • Internet address: gw-vpn.dei.uc.pt
  • Destination name: DEI-VPN
  • Windows 10: Click Create
  • Windows 7: Tick "Don't connect now..." and click Next

4. Enter your DEI username and password (without domain)

5. Close this window

6. Go to Network Connections and right-click the VPN → Properties

7. In Security tab:

  • VPN Type: Layer 2 Tunneling Protocol with IPsec (L2TP/IPSec)
  • Check PAP
  • Uncheck CHAP
  • Check MS-CHAP v2

8. Click Advanced, enter pre-shared key: dei. Confirm and finish.

More help: Microsoft KB926179

Windows 7/10 (OpenVPN)

  • Install OpenVPN Client from https://openvpn.net/community-downloads/
  • Download and unzip openvpn.zip
  • Move GEANT-CA.crt and client.ovpn to C:\Program Files\OpenVPN\config\ or C:\Users\username\OpenVPN\
  • Start OpenVPN GUI → right click icon → Connect
  • Use only the username (no @dei.uc.pt or @student.dei.uc.pt)

Linux

1. Install OpenVPN support:

  • sudo apt-get install network-manager-openvpn
  • Download and extract openvpn.zip
  • Get GEANT-CA.crt

Open Network Manager → VPN tab → Add

2. Choose VPN Type: OpenVPN → Create

3. Fill in:

  • Gateway: gw-vpn.dei.uc.pt
  • Type: Password
  • Username / Password
  • CA Certificate: GEANT-CA.crt

Click Advanced

4. In Advanced:

  • Custom port: 1194
  • Use TCP
  • Use TAP device
  • LZO compression: Yes

Android (OpenVPN)

Connecting via OpenVPN on Android is not possible with the official client. Use the paid alternative version or configure IPSEC.

Android (IPSEC)

1. Go to Android settings → More → VPN

2. Tap "+" in the top-right corner

3. Configure VPN. Pre-shared key: dei

4. Select connection and enter DEI credentials (no domain)