Setup NUS SoC VPN on Linux 2022 - The Missing Guide
This inofficial guide provides the commands necessary to connect to the SoC (School of Computing) VPN at NUS (National University of Singapore). It is complementary to the official guide which is unfortunately missing instructions for linux users.
Prerequisites
The tool required for the vpn connection is openfortivpn. The following linux distributions provide pre-build packages for your comfort (just a copy-paste from the linked GitHub repo):
Fedora / CentOS
openSUSE / SLE
Gentoo
NixOS
Arch Linux
Debian
Ubuntu
Solus
Installation for Ubuntu / Debian
Just an example, this command is used for ubuntu / debian distributions:
If you are using any of the other distros, you should already know how to install your packages.
Start VPN Connection (Command Line)
The following command will start the VPN connection with the command line based util.
After hitting ENTER, you should be prompted for your NUSNET password by your favorite pinentry application. Be sure to include the sudo
and use your NUSNET-ID without the domain specifier.
Ubuntu NetworkManager VPN Connection
The VPN can also be stored as a connection in the ubuntu NetworkManager (tested with version 1.36.6).
Open the "Connections"-settings, either from the network tray icon or from system settings
Click the + Button "Add new connection"
Select "Fortinet SSLVPN (fortisslvpn)"
Gateway is "webvpn.comp.nus.edu.sg"
User name is your NUSNET ID
Password your NUSNET password
Don't change anything else.