VPN

Using OpenConnect in TarHeel Linux 7

To connect to UNC VPN with TarHeel Linux 7, it is easier to use OpenConnect.  You will have to install OpenConnect first.  At the prompt of your TarHeel Linux 7 machine, use the following command to install OpenConnect as root.

yum install openconnect

Once OpenConnect is installed, log in as yourself and type this command in a new terminal window.  This terminal window will tie to VPN.  As long as VPN is in effect, you will not be able to use this terminal.

openconnect vpn.unc.edu

OpenConnect will ask you the group name, enter “UNCCampus”.  Then, it will ask you for username and password, it will be your ONYEN and your ONYEN password.  After that, it will prompt you for username and password again, it will be “UNCCampus” and the password associated with that.

Once you have successfully connected to UNC VPN, you can open up a new terminal window to do your work.  When UNC VPN is no longer needed, go back to the VPN window and type ctrl-c to quite OpenConnect.

Using VPNC in TarHeel Linux 6

To connect to UNC VPN with TarHeel Linux  6, it is very convenient to use VPNC.  All TarHeel Linux 6 installation should have the required packages installed for VPN access.  If not, to install VPNC on TarHeel Linux 6, run the following command with root.

yum install vpnc vpnc-consoleuser

To connect, run the following command as a normal user.

vpnc

You will be prompted for Onyen and Onyen password. After a successful login, TarHeel Linux will then be connected to UNC VPN.

After you are done with VPN access, you can discount it with this command.

vpnc-disconnect

Using Windows Cisco VPN Client

If TarHeel Linux installation is a guest OS of a Windows machine using VirtualBox, one can simply turn on the Windows Cisco VPN Client under Windows. Then, bring the TarHeel Linux up as the guest OS. TarHeel Linux will have the VPN access tunneled through Windows.