Re: ADSL dialer script

2004-05-17 Thread Noam Meltzer
Muli Ben-Yehuda wrote: 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. I believe that my script is based on the script Muli suggested (though many parts of it were re-written, and i changed parts

Re: ADSL dialer script

2004-05-16 Thread Aaron
So I now see two scripts Shlomo's and Noams. Which would be most appropriate for cable connection? Boy I was so excited to get a fixed IP address. But the connection dies often. With the dynamic IP I never had such a problem. I guess it is just a trade off. Thanks Aaron On א', 2004-05-16 at 18

Re: ADSL dialer script

2004-05-16 Thread Shlomo Solomon
On Saturday 15 May 2004 21:40, Noam Meltzer wrote: > Hetz Ben Hamo wrote: > > Hi, > > > > I have a situation which is well known to people - your machine is > > connected (PPTP) to the net, but sometimes there's disconnection > I have such scripts, which I managed to write during the time (and bas

Re: ADSL dialer script

2004-05-16 Thread Muli Ben-Yehuda
On Sun, May 16, 2004 at 09:21:44AM +0300, Eli Marmor wrote: > Since I've never seen such a problem with dialers of Windows, I'm sure > that there must be something to do with it from the Linux side; I don't > know if it requires a patch in the PPtP/PPP code, or better scripts, or > whatever; Maybe

Re: ADSL dialer script

2004-05-15 Thread Eli Marmor
I spent a lot of time with this issue, about one year ago. My main problem was bizar: Although my script killed and/or reset everything it could, before trying to re-connect, the ISP still "thought" that I was connected, and refused to re-connect me, claiming that there is a "CHAP" problem and th

Re: ADSL dialer script

2004-05-15 Thread Aaron
for us not so script savy how would I do that?? Thanks Aaron > Yes. > > When writing the script you should consider the possibility of two such > redials being run simulataniously (e.g: maybe you try running it > manually, and then the one from cron starts running). I use a simple > lock file t

Re: ADSL dialer script

2004-05-15 Thread Tzafrir Cohen
On Sun, May 16, 2004 at 01:20:46AM +0300, Aaron wrote: > neat I was just wondering what to do when my cable connection dies. > > I was hoping for a script that with do an ifconfig and if no ppp0 is > found automatically redial. > > Then I would make it run every x minutes (cron?) > Are the optio

Re: ADSL dialer script

2004-05-15 Thread Aaron
neat I was just wondering what to do when my cable connection dies. I was hoping for a script that with do an ifconfig and if no ppp0 is found automatically redial. Then I would make it run every x minutes (cron?) Are the options essentially the same for cable as for adsl?? Will your fixes help

Re: ADSL dialer script

2004-05-15 Thread Muli Ben-Yehuda
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

Re: ADSL dialer script

2004-05-15 Thread Ez-Aton
Add this to your /etc/ppp/options: lcp-echo-interval 20 lcp-echo-failure 3 It means that after 3 (lcp-echo-failures) tries, of 20 seconds interval (aka, 60secs), your ppp interface will go down by itself. lcp-echo failures will occure when there is no actual data transfer on your line. (I th

Re: ADSL dialer script

2004-05-15 Thread Noam Meltzer
Hetz Ben Hamo wrote: Hi, 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.. I have a small script which de

ADSL dialer script

2004-05-15 Thread Hetz Ben Hamo
Hi, 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.. I have a small script which deals with the situatio