The CUHK CSE page for the VPN doesn't have the best tutorial for Linux. In fact, they have none.
After a few hours combined of messing around, I have figured it out, and I'm sharing it with everyone in case you're also stuck.
This guide uses OpenVPN 3 as the client. If you want to use IPsec instead, use the scripts made by some former CSE students.
Do note that those scripts are 8 years old (at the time of writing) and I have not tested them, so good luck! Still want to use OpenVPN 3? Cool.
It runs Endeavour OS, but the solution should be similar for all distros.
- Go to https://openvpn.cse.cuhk.edu.hk
- Login with your CSE VPN account.
- Scroll down to the bottom of the page and click on "Yourself (locked something something)".
- The
.ovpn
file will be downloaded.
Install openvpn3
for your distro.
An Arch Linux example:
yay -S openvpn3
If you are using KDE Plasma as your desktop environment, you can just use Plasma's integration.
- Open "System Settings".
- Go to "Network" -> "Connections".
- Click "Add new connection" (the + symbol).
- Scroll down and choose "Import VPN connection".
- Choose your downloaded
.ovpn
file. - Put your CSE account details into the "Username" and "Password" fields.
openvpn3 session-start --config path/to/client.ovpn
Then login with your CSE account.
Or, if you are using the KDE Plasma way, just click "Connect" in the network applet.
Congratulations! You're now using the CSE VPN!