LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-08-2003, 06:37 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
keep linux cisco vpn client up and running


hi

I have installed vpnclient-linux-3.7.3.A
at SuSE 8.2

My problem is, that sometimes the tunnel goes down.

I'm looking for a script to keep linux cisco vpn client up and running and I would be very glad, if some one can post it.

kind regards
chris
 
Old 10-06-2003, 01:23 AM   #2
td_miles
Member
 
Registered: Sep 2003
Location: Australia
Distribution: RedHat
Posts: 51

Rep: Reputation: 15
I configure PIX firewalls for use with teh VPN clients and there is a timeout that is set for inactive clients to disconnect them. This is done for a reason, so as I see it, you have two options:

1. Contact the person who is in charge of the VPN endpoint you are connecting to and see if the timeout can be lengthened.

2. Do something to send some traffic so that the tunnel doesn't get disconnected if idle.

If the tunnel is not idle (ie. you are sending traffic over it, but still getting disconnected), then you need to start doing some debugging to work out why. I haven't used the Linux VPN client, but the Windows one has a debug console built in where you can try to see what is happening.

An alternative would be to write a script that checks to see if the tunnel is up (say every 1 minute) and if it isn't, then the script should initiate the tunnel.

I would suggest talking to your tech support for the VPN endpoint for this as well.
 
Old 01-13-2004, 08:26 AM   #3
levenger
LQ Newbie
 
Registered: Jan 2004
Location: 'zona
Distribution: SuSe 9.0 Professional
Posts: 23

Rep: Reputation: 15
cccc,

I've installed the Cisco VPN client on my computer successfully but I can't find the file
/etc/rc.d/init.d/functions

Do you know where it comes from? Does the install create it? Is it something I need to install? If so, what package is it in?
 
Old 01-13-2004, 02:35 PM   #4
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
hallo levenger

what kind of linux do you have ?

cisco vpn client was created for linux RedHat
and it install start links for RedHat

first check which runlevel starts your linux:

# runlevel
N 5

after your have to create start links:

cd /etc/init.d/rc5.d
ln -s ../vpnclient S99vpnclient
ln -s ../vpnclient K99vpnclient

regards
cccc
 
Old 04-18-2006, 01:45 PM   #5
srp8621
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
Followup

Quote:
Originally Posted by cccc
hi

I have installed vpnclient-linux-3.7.3.A
at SuSE 8.2

My problem is, that sometimes the tunnel goes down.

I'm looking for a script to keep linux cisco vpn client up and running and I would be very glad, if some one can post it.

kind regards
chris

Hi Chris.

Did you ever find a suitable script to fix this problem?
I am in the same situation and am in need of a keep alive script.

Thanks.
Scott
 
Old 04-18-2006, 07:54 PM   #6
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by srp8621
Hi Chris.

Did you ever find a suitable script to fix this problem?
I am in the same situation and am in need of a keep alive script.

Thanks.
Scott
yep,

I've added to the end of /etc/init.d/vpnclient the following:
Code:
cp /etc/Cisco/Profiles/cisco.template /etc/Cisco/Profiles/cisco.pcf
sleep 10
/usr/local/bin/vpnclient connect cisco & > /dev/null
in cisco.template I had user and passwort and SaveUserPassword was on '1'.

and there was my script to keep the vpn client up & running from cron:
Code:
#!/bin/sh

# cisco_vpn_script
# /usr/local/bin/vpnclient

ping -c 4 X.X.X.X

# ps ax | grep vpnclient | grep -v grep

if [ "$?" != "0" ] ; then

# restart PROCESS

     /etc/init.d/vpnclient_init restart

     fi
greetings
cccc
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux 2.6.10 cisco vpn client freezes system thahn01 Linux - Software 36 12-02-2008 01:18 AM
Cisco VPN Client rgbeard Linux - Software 12 04-02-2008 11:44 PM
enterprise linux ws, cisco vpn client, install kernel source ganewton Linux - Security 3 09-20-2004 12:43 AM
Connect to Cisco VPN w/o Cisco VPN Client gboutwel Linux - Networking 4 02-07-2003 12:46 PM
cisco vpn client aqoliveira Linux - Networking 4 07-19-2002 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration