LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-16-2005, 10:19 PM   #1
mfcarroll
LQ Newbie
 
Registered: Mar 2004
Location: Vancouver, Canada
Distribution: debian testing / ubuntu
Posts: 11

Rep: Reputation: 0
how to keep alive a pptp connection being timed-out by remote router?


I'm connecting to a remote lan using pptp. The connection works fine (standard set up as per pptpclient.sourceforge.net/howto-debian.phtml) but the router at the other end (over which i have no control) drops the connection if it's inactive for only a few minutes, which can be really frustrating. Does anyone know how I can keep the connection alive, e.g. setup a ping to the remote router every few minutes while the connection is up... I don't know how to do this. Or maybe there's another way?

Thanks for your help
Matthew
 
Old 02-17-2005, 09:03 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
in my /etc/ppp/options in slackware i found this option:

Code:
# If this option is given, pppd will send an LCP echo-request frame to
# the peer every n seconds. Under Linux, the echo-request is sent when
# no packets have been received from the peer for n seconds. Normally
# the peer should respond to the echo-request by sending an echo-reply.
# This option can be used with the lcp-echo-failure option to detect
# that the peer is no longer connected.
# lcp-echo-interval 30

# If this option is given, pppd will presume the peer to be dead if n
# LCP echo-requests are sent without receiving a valid LCP echo-reply.
# If this happens, pppd will terminate the connection.  Use of this
# option requires a non-zero value for the lcp-echo-interval parameter.
# This option can be used to enable pppd to terminate after the physical
# connection has been broken (e.g., the modem has hung up) in
# situations where no hardware modem control lines are available.
# lcp-echo-failure 4
You may use the lcp-echo-interval, if you use the pppd.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
PPTP VPN remote connection from home powah Linux - Networking 0 05-02-2005 10:10 PM
PPTP and remote X apps clergykid Linux - Newbie 2 10-09-2004 11:46 PM
remote system error connection timed out geodo Linux - Networking 0 10-07-2004 05:13 AM
Keeping the connection alive? NonSumPisces Linux - Networking 2 07-08-2004 06:12 PM
imap+xinetd: connection not kept alive foogy Linux - Networking 3 07-08-2003 04:18 PM


All times are GMT -5. The time now is 05:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration