Re: Keeping pppd alive--how?

chris_at_nospam.com
Date: 11/03/04

  • Next message: BearItAll: "Re: Logon shells for services"
    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


  • Next message: BearItAll: "Re: Logon shells for services"

    Relevant Pages

    • Re: [SLE] Remote desktop?!?
      ... You'll have a command line for the other machine in front of you. ... display will be tunnelled via the SSH connection to the client. ... This is, of course, the geek solution to remote execution of programs (It's ... a Linux list, you gotta expect that...). ...
      (SuSE)
    • Re: OT: Hard disk mirror with Paragon on USB stick?
      ... at least two pages of intricate command line stuff. ... The password is only used when you want to backup to a remote machine ... via the network, using the ssh protocol. ... (e.g. with linux, ...
      (sci.electronics.design)
    • Re: executing commands from telnet from D3
      ... "Would the ssh command on the remote linux box allow me to get to the ... your user on the linux box would have to first log ... to port 4444/tcp. ...
      (comp.databases.pick)
    • request for some help getting the right commands for remote ssh session
      ... I have been trying to buildup some ssh tunneling commands that would ... an machine behind an firewall but with an public server in between. ... # command script for admin0 ...
      (SSH)
    • Re: Linking wireless and ethernet network adapters
      ... I mainly wanted to ssh into the Linux box and still have wireless ... > 192.168.0.1 is a router on the wlan0. ... > Also make sure your firewall is not blocking things (ie bring down all ...
      (uk.comp.os.linux)