(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



Connecting pppd to a serial port and passwords


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From - Mon Apr 12 06:10:33 1999
Xref: world comp.unix.sco.misc:93849
Path: world!newsswitch.lcs.mit.edu!logbridge.uoregon.edu!enews.sgi.com!harbinger.cc.monash.edu.au!towncrier.cc.monash.edu.au!not-for-mail
From: Kevin Lentin <kevinl@cs.monash.edu.au>
Newsgroups: comp.unix.sco.misc
Subject: Re: Manual dial-up PPP
Date: 11 Apr 1999 08:59:01 GMT
Organization: Monash Uni
Lines: 88
Distribution: world
Message-ID: <7epo8l$22a$1@towncrier.cc.monash.edu.au> 
References: <7eh97e$d81$4@towncrier.cc.monash.edu.au> <7ej121$kui$1@hobbes.caldera.com> <7ejram$m7t$3@towncrier.cc.monash.edu.au> <7eltvo$sla$1@hobbes.caldera.com> 
Reply-To: K.Lentin@cs.monash.edu.au
NNTP-Posting-Host: fangorn.cs.monash.edu.au
X-Trace: towncrier.cc.monash.edu.au 923821141 2122 130.194.64.10 (11 Apr 1999 08:59:01 GMT)
X-Complaints-To: abuse@monash.edu.au
NNTP-Posting-Date: 11 Apr 1999 08:59:01 GMT
User-Agent: tin/pre-1.4-980226 (UNIX) (SunOS/5.7 (sun4m))
X-Mozilla-Status: 8011

Evan Hunt <evanh@sco.COM> wrote:

> I didn't say pppd couldn't do it, just that I didn't understand
> why you wanted it to.  It's designed to bring the link up silently
> when you request IP connectivity;



Sounds like a dangerous design goal to me. Useful feature yes, but as the
only mode of operation, very limited. I can see my employer being quite
pissed to discover that their system automatically dials into a PPP server
that charges them by the hour when any user types in a bad hostname.

> I regard that as a good, useful
> design.  Wanting to manually dial the phone and type your password
> every time seems like a hassle, a feature few people would desire.

On a personal machine maybe. On a machine owned by a client where a
consultant wishes to dial into base when on-site and not leave their
password on said machine? I can't believe it.

> The fact that you're the first person to ask for this feature in the
> three years I've been responsible for MSTPPP on SCO platforms, suggests
> that I may have been correct in that evaluation. :)

I'm amazed. Even Windows has the ability to forget a password. I tend to be
like this. My natural way of using computers is completely contrary to the
way large OS companies think. I spend my life battling against computers.
And so do all the people I went through university with. Except for those
that use them purely as applicaiton platforms where occasionally one person
gets through a day without a complaint. Maybe I'm obtuse, maybe I'm a
one-in-a-million kinda guy, a revolutionary ahead of my time, a complete
idiot? Who knows? I just find it hard to believe that something as simple
as this is impossible from two completely separate PPP implementations.
Time to grab the source for the PPP I'm running on this Linux box and take
it to work. That amazes me. 

> I can think of two ways to do this.  Here's the simpler one:  Set
> up your modem so it doesn't hang up when it gets an EOF.  I forget
> how to do that, but there's an AT command sequence that allows it--
> perhaps someone else could help out here?



&D0&C0. Possible. But the standard SCO locking, getty setup will manually
hang up the modem as soon as the dialer/getty discovers nobody is using the
link.

> Create a script called "startppp" on the remote side that runs pppd
> for you with all the necessary options.  Configure MSTPPP on the local
> side with no phone number, the specific name of the serial port you'll
> be using, and a chat script that just calls "startppp"--something like
> this:

>     1.2.3.4 Any tty1A 115200 N/A "" "" "" startppp

> When you want to start up a PPP link, you use kermit to connect to
> your modem and dial the phone.  Without logging out or entering
> "ATH", quit from kermit.  The modem should remain connected.  Run
> pppd with either the "dedicated" or "auto up" option, on that same
> serial port.  PPP should treat the modem as if it were a fixed serial
> link--connect, run "startppp", negotiate with the remote PPP daemon,
> and establish a link, without bothering to dial.

I would have though that possible. But I've tried and failed. I have
another PPP link working on the machine over an actual dedicated serial
link and I would have imagined that starting the remote pppd, suspending
kermit and then somehow kicking the pppd would be enough. All it needs to
do is, as you say, pretend that tty1A is a fixed port. But it just won't. I
don't know why. I just get that gethostent errot in syslog and nothing
else.

> I've never tested this, but I can't think why it wouldn't work.

Me neither, which is why I asked here :-)

> Here's the more complicated way:  Write a dialer program, based on
> atdialer.c in /usr/lib/uucp, which dials the modem for you.  When it
> connects, your program should pop up a terminal window so that you can
> log in.  AFter you've done so, you can close the window, and then your
> dialer program would pass control of the terminal back to the calling
> process, just as atdialer already does.

Or, of course, the dialer could just exit without doing ANYTHING if the
kermit connection is already up. Good idea.

-- 
[======================================================================]
[     Kevin Lentin               Email: K.Lentin@cs.monash.edu.au      ]
[   finger kevinl@fangorn.cs.monash.edu.au for PGP public key block.   ]
[  KeyId: 06808EED    FingerPrint: 6024308DE1F84314  811B511DBA6FD596  ]
[======================================================================]




Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



/Bofcusm/31.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress