Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-08-2003, 07:37 PM
|
#1
|
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623
Rep:
|
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
|
|
|
10-06-2003, 02:23 AM
|
#2
|
Member
Registered: Sep 2003
Location: Australia
Distribution: RedHat
Posts: 51
Rep:
|
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.
|
|
|
01-13-2004, 09:26 AM
|
#3
|
LQ Newbie
Registered: Jan 2004
Location: 'zona
Distribution: SuSe 9.0 Professional
Posts: 23
Rep:
|
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?
|
|
|
01-13-2004, 03:35 PM
|
#4
|
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623
Original Poster
Rep:
|
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
|
|
|
04-18-2006, 02:45 PM
|
#5
|
LQ Newbie
Registered: Apr 2006
Posts: 1
Rep:
|
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
|
|
|
04-18-2006, 08:54 PM
|
#6
|
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|