On Sat, May 15, 2004 at 09:14:13PM +0200, Hetz Ben Hamo wrote:

> I have a situation which is well known to people - your machine is 
> connected (PPTP) to the net, but sometimes there's disconnection between 
> your home and ISP, but the PPP0 interface stays up, which means you'll 
> need to kill it and redial..

Add this to /etc/ppp/options: 

# Without the next 2 lines, pppd won't detect loss of connection,
# because pppd regularely uses modem DTR line to detect connection drop, 
# and pptp doesn't have one. 
lcp-echo-interval 60 
lcp-echo-failure 2

> I have a small script which deals with the situation where the PPP0 
> interface is down, then it tries to connect until it connects, but my 
> script doesn't handle the situation above..
> 
> So, I was thinking - has anyone written such a script? (for PPTP 
> connection, not PPPOE) and willing to share it please?

I used to use a hacked up version of
http://www.hageltech.com/download/adsl-connect-0.1.tar.gz, but nowdays
debian takes care of it automatically. 

Cheers, 
Muli 
-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/

Attachment: signature.asc
Description: Digital signature

Reply via email to