A new OS experience

2008-04-08

Cisco VPN Client on Linux

I was trying to connect to my network drive at UTA but I was unsuccessful. Yeah, I completely did not read the instructions at the IT department's website. It turns out, a VPN connection is needed when connecting to the student (or faculty) server off-campus. Taking a look at the instructions on that site, the VPN of choice was Cisco's VPN client (multi-platform). In order to download it from their site, you need a school ID, but one can find it elsewhere on the web, available vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz. Setting it up was trickier than I thought, and of course the college's IT instructions were a bit short in explanation. As is the case with anything regarding Linux, I found a great how-to on this wiki by Soft Ice. Based on the wiki, this is what I did:

I. Installation

1. Downloaded the vpnclient tarball from: http://www.govnet.state.vt.us/restricted/ciscovpnclient/

2. Checked the kernel sources are installed:

$ sudo ls /lib/modules/

3. Downloaded the kernel patch (my kernel is 2.6.22-xx):

$ sudo wget http://tuxx-home.at/projects/cisco-vpnclient/vpnclient-linux-2.6.22.diff

4. Extraced the tarball:

$ sudo tar -zxvf vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz

5. Applied the patch:

$ cd vpnclient
$ sudo patch -i ../vpnclient-linux-2.6.22.diff

6. Installed the vpn client:

$ sudo ./vpn_install

Accepted the default settings and moved on.

7. Confirmed vpnclient is installed:

$ ls /etc/opt

II. Configuration:

8. Started the vpnclient service:

$ sudo /etc/init.d/vpnclient_init start

9. Create a profile:

$ sudo nano /etc/opt/cisco-vpnclient/Profiles/mynewprofile.pcf

According to my college's IT department the minimum configuration of that file should be:

[main]
Host=vpn.uta.edu
AuthType=1
GroupName=default
GroupPwd=UTAsecret

10. Started the VPN session:

$ sudo vpnclient connect uta

where uta is the name of the .pcf file created under /etc/opt/
cisco-vpnclient/Profiles/mynewprofile.pcf


That was all there was to it.

No comments: