Re: Keeping pppd alive--how?
chris_at_nospam.com
Date: 11/03/04
- Previous message: annonymous: "Re: Signal out of Range"
- Maybe in reply to: Moe Trin: "Re: Keeping pppd alive--how?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 03 Nov 2004 06:16:14 GMT
>>I'm not sure what your ppp-on script has in it, but you're trying to
>>make this harder than it has to be.
>
>My ppp-on script contains only one (rather tricky with the single and
>double quotes) command:
>
>/usr/sbin/pppd name "xxxxxxxxx@worldnet.att.net" -d connect
>'/usr/sbin/chat -t 45 ABORT BUSY "" ATDT824xxxx CONNECT ""' /dev/modem
>115200 noipdefault modem defaultroute crtscts
Crafty. A few others pointed out the -persist option which I think is
what you need.
>>Run redhat-config-network-gui and edit the connection. Under the
>>options tab is an option to redial is connection is lost. If you
>>can't run the gui (even if you send the display to your local
>>computer) you will need to edit the ifcfg-*** script and set
>>persist=yes.
>>
>
>My Linux machine is text only--no GUIs. And even with that I need to
>carefully watch my hard drive space with a tight budget.
If you run an x-windows server on your PC (not the linux box). You
can direct program displays to your PC and don't actually need X
installed on the linux box.
I run my linux firewall in runlevel 3 (X not running) and pipe
x-windows displays to my PC. In particular, I run an instance of
pload with the display pointed to my desktop so I can watch the
bandwidth on the dialup link. See my example below.
>>For easier control of the connection, download Putty and run SSH on
>>the linux box (listen on the inside interface or firewall port on ppp
>>interface). Then create a shortcut to run the plink command to run
>>your scripts on the firewall. Something like:
>>
>>C:\putty\PLINK.EXE -load "firewall" -batch /root/start_ppp.sh &
>>
>Thanks. If i need to, I'll use Putty but it must be text-based to run
>on my vintage machine.
Putty is a suite of apps for making SSH connections (a secure
alternative to plain text telnet).
As an example I have a shortcut on my desktop as follows. (wrapped)
"C:\Program Files\putty\PLINK.EXE" -load "firewall"
-batch "nohup /root/ppp_load.sh &"
'Firewall' is a saved ssh session that has the private ssh keys
already setup (although you could specify the user/password on the
commandline as well).
On the linux box, ppp_load.sh contains a two lines.
1) #! /bin/bash
2) /usr/bin/pload -geometry 700x300 -minscale 5
-average 4 -device ppp0 -indiv 1000
-outdiv 1000 -iformat "Incoming: %r , Maximum %M ,
Total %t " -oformat "Outgoing: %r , Maximum %M ,
Total %t " -display 192.168.500.23 &
-Chris
- Previous message: annonymous: "Re: Signal out of Range"
- Maybe in reply to: Moe Trin: "Re: Keeping pppd alive--how?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|