ppp -direct as server doesn't exit when line dropped

ppp -direct as server doesn't exit when line dropped

Post by Eric V. Smit » Sun, 21 Dec 1997 04:00:00



I'm using user ppp in combination with mgetty as a dialup server.  I'm using
chap to authenticate.  Everything works fine, up to the point I disconnect.
The ppp program never exists, so mgetty never starts again and I can't use
the line until I manually kill the ppp process.

I'm using a Cyclom-Y card with the 8 connector DB-25 cable.

My script (invoked by mgetty) looks like:
-----------
#!/bin/sh -

TTY=`tty`
TTY=`basename $TTY`

exec /usr/sbin/ppp -direct chap$TTY
-----------

My ppp.conf looks like (with IP's changed):
-----------
default:
 enable lqr
 accept lqr
 set log phase lcp chat
 set timeout 0

chapttyc00:
 enable chap
 set ifaddr 10.0.0.1 10.0.0.2
-----------

The end of my ppp.log file looks like:
-----------
Dec 20 12:15:05 tudor ppp[3764]: LCP: State change Ack-Rcvd --> Opened
Dec 20 12:15:05 tudor ppp[3764]: LCP: LcpLayerUp
Dec 20 12:15:05 tudor ppp[3764]: Phase: NewPhase: Authenticate
Dec 20 12:15:05 tudor ppp[3764]: Phase:  his = 0, mine = c223
Dec 20 12:15:05 tudor ppp[3764]: LCP: ChapOutput: CHALLENGE
Dec 20 12:15:05 tudor ppp[3764]: LCP: ChapInput: RESPONSE
Dec 20 12:15:05 tudor ppp[3764]: Phase:  Valsize = 16, Name = erics
Dec 20 12:15:05 tudor ppp[3764]: LCP: ChapOutput: SUCCESS
Dec 20 12:15:05 tudor ppp[3764]: Phase: NewPhase: Network
Dec 20 12:15:05 tudor ppp[3764]: LCP:  IPADDR [6] 199.181.96.18
Dec 20 12:15:05 tudor ppp[3764]: LCP:  COMPPROTO [6] 002d0f00
Dec 20 12:15:06 tudor ppp[3764]: LCP: OsLinkup: 199.181.96.200
Dec 20 12:15:35 tudor ppp[3764]: LCP: Received Protocol Reject (8) state =
Opened (9)
Dec 20 12:15:35 tudor ppp[3764]: LCP: -- Protocol (c025) was rejected.
Dec 20 12:15:35 tudor ppp[3764]: LCP: Received Echo Reply (3) state = Opened
(9)
Dec 20 12:15:51 tudor ppp[3764]: Phase: Disconnected!
Dec 20 12:15:51 tudor ppp[3764]: Phase: Connect time: 48 secs
Dec 20 12:15:51 tudor ppp[3764]: Phase: NewPhase: Dead
Dec 20 12:15:51 tudor ppp[3764]: LCP: LcpLayerDown
Dec 20 12:15:51 tudor ppp[3764]: LCP: State change Opened --> Starting
-----------

I found a FAQ about using lqr for a direct cable connect, but it doesn't
seem to make a difference one way or another.

My modem lights look correct when it hangs up.

Any ideas?

Thanks in advance.

Eric.

 
 
 

ppp -direct as server doesn't exit when line dropped

Post by Brian Some » Tue, 30 Dec 1997 04:00:00




: I'm using user ppp in combination with mgetty as a dialup server.  I'm using
: chap to authenticate.  Everything works fine, up to the point I disconnect.
: The ppp program never exists, so mgetty never starts again and I can't use
: the line until I manually kill the ppp process.
:
: I'm using a Cyclom-Y card with the 8 connector DB-25 cable.
:
: My script (invoked by mgetty) looks like:
[.....]

Looks ok.  You may want to get the latest ppp from
http://www.FreeBSD.org/~brian.  There were some problems a while
ago with ppp not exiting.  If your problems persist, check the
FAQ on http://www.FreeBSD.org/FAQ/userppp.html for details of
how to use `debug' logging to see ppps idea of your carrier status.

: My modem lights look correct when it hangs up.

You may want to make sure your modem is set for `normal CD operation'
too.

: Any ideas?
:
: Thanks in advance.
:
: Eric.

--

      <http://www.Awfulhak.org>
Don't _EVER_ lose your sense of humour !

 
 
 

1. 'serial line is looped back' causes ppp connection to drop - help...

Hi,

    I've just put some new disks in my computer and upgraded (from
scratch - new disks) from debian 1.2 to 1.3.1.

    When using my modem to dial in to my ISP, it dials in fine, I get
authenticated etc.

    After the authentictaion bit in /var/log/ppp.log I get:

<authentication stuff>
.
ppp0 <---> /dev/cua1
.
.
serial line is looped back.
connection terminated

I don't know what this means, so haven't a clue what to do about it.

I have an internal 14.400 modem on COM2 which had no problems
previously.

On boot up, /dev/ttys0 and /dev/ttys1 are recognised (16550A UART).

After initial installation, the /dev/cuaN devices weren't there so I
mafe them (cua0 and cua1) with MAKEDEV.

setserial /dev/ttys1 gives:

ttys0: I/O error.

I am flummoxed as the error messages mean nothing to me.

My loopback device (lo) is set up correctly I believe (it shows up OK
with ifconfig as 127.0.0.1).

What's up?  I can't  get to the net from home until this is sorted...

Thanks for any help,

    Martin

2. Problems when building kdelibs-3.0.2

3. mgetty doesn't hang up when a line drops

4. pgpmailer and privtool on multiple linux machines

5. PPP Server Drops Phone Line

6. finding the student directory for iupui campus

7. PPP terminates, but carrier doesn't drop

8. glib-2.0 install problems

9. exit doesn't exit?

10. kermit drop lines on exit

11. ksh: trap '...' exit int ... or just trap '...' exit?

12. PPP doesn't die, it just doesn't work anymore