VPN

From RHLUG Wiki
Revision as of 07:28, 24 February 2019 by Wesley (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NOTE: We stopped offering this since it was abused... But the instructions are still valid for using OpenVPN in general.

EIT provides a VPN for student/faculty use (link), but it's a pain and sometimes breaks everything network related (particularly on non-Windows platforms), so we provide an OpenVPN connection with configuration files which people can use to access on-campus only resources from off campus as well as allow you to access any machines behind the RHLUG firewall.

Getting an Account

To get access to our VPN, email the sysadmin for an account (preferably from your Rose email).


Installing and Configuring

Windows

  • Download the Windows installer (not the source) from the OpenVPN website.
  • Install the client, make sure to allow everything it wants access to or install.
  • Put the contents of the .zip file (the *.key, *.ovpn, and *.p12 files) in the C:\Program Files\OpenVPN\config directory.
  • Run the OpenVPN GUI, it should show up in the system tray.
  • Right click on the tray icon and click connect.
  • Enter the username/password you got from the sysadmin, you'll probably want to check the remember username/password box

Tested on Windows 7 (virtual machine) and Windows 10 (bare metal)

macOS

  • Download Tunnelblick.
  • Go through the installer.
  • Put the contents of the zip you got from the sysadmin somewhere permanent (you need the 3 files in the same directory).
  • Either double click on the .ovpn file or drag it to the Tunnelblick icon by the clock to add the config.
  • Connect by using the Tunnelblick menu by the clock.
  • Enter the username/password you got from the sysadmin, you'll probably want keychain to remember them.

Tested on OS X 10.11.6 (virtual machine) and macOS 10.13.2 (virtual machine)

Linux

  • Install a package from your distro's repo that is able to connect using an OpenVPN configuration file (.ovpn), such as openvpn.
  • Put the .ovpn file in a folder, for example, in the (home folder)/Documents/RHLUG_VPN folder, using a GUI or terminal, using the commands (where ~ indicates home directory):
cd ~/Documents

mkdir RHLUG_VPN

cd RHLUG_VPN

cp ~/(folder where you stored the .ovpn file)/(your openvpn file name).ovpn .

The . at the end of the cp command is not a period, it means "current directory", or the ~/Documents/RHLUG_VPN folder.

  • To connect to the server, in a terminal, go to the directory with the OpenVPN files. (In this example, ~/Documents/RHLUG_VPN is the folder). Then type sudo openvpn (config file).ovpn.
  • To disconnect from the server, in the terminal where you connected to the server, press the Ctrl and C keys at the same time. A bunch of text should flow across your screen and once the prompt has shown back up, you are fully disconnected.