TCNJ Linux VPN Setup Tutorial
If at any point in this tutorial a command fails, install the recommended package using
sudo apt-get install <package name>, where
<package name> should be replaced by an actual package name.
Run the following command to install the library required to run the VPN:
$ sudo apt-get install openconnect
Create a file named
tcnj-vpn(no file extension) and write the following code to it using your favorite text editor:
sudo openconnect --protocol=gp vpn-gw-ft.tcnj.edu --quiet --user=username
usernameshould be replaced by your TCNJ username.
Run the following command to ensure the file is executable:
$ chmod u+x tcnj-vpn
Move the file named
tcnj-vpnto the directory
/usr/bin. You may be unable to do this using the standard drag-and-drop GUI due to root privileges requirements. In that case run the following command:
$ sudo mv tcnj-vpn /usr/bin
Set up multifactor authentication with Duo (TCNJ requires it).
You have successfully configured your TCNJ Linux VPN!
To connect to the VPN simply run the following command from any directory, enter your password when prompted, and authenticate via the device you set up with Duo:
You may ignore any output unrelated to incorrect credentials.
Note that you will be unable to work from the terminal window where you ran the command so simply open another terminal window if you wish to continue working. Alternatively you could run the command in the background.
To disconnect simply open the terminal window where you ran the
tcnj-vpn command and press CTRL+C.