VPN for Linux
Installation
These steps have been tested on recent versions of RedHat, Fedora, Ubuntu, and Slackware.
- Obtain the IPSec Group Name and IPSec Password for either on campus use or off campus use by clicking the following link: VPN Account Information.
- If prompted, enter your SacLink User ID and Password. If you have not created your account or have forgotten your account ID or password, see SacLink Information for details.
- Obtain the VPN client from the Software Distribution Web Site by clicking the following link: http://www.csus.edu/uccs/software/
- Click on the Obtain Software link in the left navigation bar.
- Read and agree to the terms of distribution by clicking the I Agree link at the bottom of the page.
- Log in using your SacLink username and password.
- Locate the Cisco VPN Client for your operating system and click the Download link.
- Click the Download Now button.
- Save the file to your home directory. The file could take a few minutes to download depending on your connection speed.
- Once the file is downloaded, close your browser.
- Open a terminal session. How this is done depends on your distribution of Linux and whether or not you are running X windows.
- Change directory to where you downloaded the file. If you downloaded the file to your home directory, simply type
cd - Unpack the file that you have downloaded by typing
tar xvzf vpnclient-linux-4.0.1.A-k9.tar.gz - Change directory to the newly unpacked directory
cd vpnclient - You need to be the root user (superuser) to run the install script.
Typesuand press enter. - Enter the root password.
- To install the client type:
./vpn_install - Accept all the default selections by pressing the Enter key.
- Restart your computer, or type (as root)
/etc/rc.d/init.d/vpnclient_init start
to start the vpn client without restarting.
Configuration
The following instructions assume you are using the vi (vee-eye) text editor. But you can use any text editor, such as emacs or pico (the instructions will vary slightly depending on your choice of editor).
- Open a terminal session and become root (superuser).
- Type
suand press enter. Enter the root password. - Create a User Profile for the VPN Client. The default location of the sample profile is /etc/CiscoSystemsVPNClient/Profiles/.
- Type
cd /etc/CiscoSystemsVPNClient/Profiles/ - Type
ls - You must copy the sample.pcf file and rename it. To do so, type
cp sample.pcf oncampus.pcf
(offcampus.pcf for off campus connections). - Typevi oncampus.pcf
- Using the arrow keys on the keyboard, place the cursor after the = sign at the Description prompt.
- Press the esc key and then the x key, to delete the previous information.
- Press the esc key and then the i key, to enter the new information.
- Type Sac State On Campus VPN Connection or Sac State Off Campus VPN Connection at the prompt for the Description.
- Using the arrow keys on the keyboard, place the cursor after the = sign at the Host prompt.
- Press the esc key and then the x key, to delete the previous information.
- Press the esc key and then the i key, to enter the new information.
- Type vpn.csus.edu at the prompt for Host.
- Using the arrow keys on the keyboard, place the cursor after the = sign at the GroupName prompt.
- Press the esc key and then the x key, to delete the previous information.
- Press the esc key and then the i key, to enter the new information.
- Type the IPSec Group name you obtained from the VPN Account Information document.
- Using the arrow keys on the keyboard, place the cursor after the = sign at the Username prompt.
- Press the esc key and then the x key, to delete the previous information.
- Press the esc key and then the i key, to enter the new information.
- Type your SacLink login name at the Username prompt. The file should look like the On Campus or Off Campus sample.
- Save the new profile by pressing the esc key followed by a colon and letters wq and then press enter (
esc :wq enter).
Running the Client
- Connect to the Internet.
- Open a terminal session.
- Type the following:
vpnclient connect profile
(where profile for on campus connections is: oncampus; and for off campus connections is: offcampus ). - It will prompt you to enter the group password.
- It will display your SacLink user name.
- At the password prompt, type your SacLink password.
- The VPN services should now be enabled.
- Connect to the Internet.
Last Updated: March 6, 2006
