*BSD News Article 82811


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!inquo!in-news.erinet.com!imci5!newsfeed.internetmci.com!feed1.news.erols.com!arclight.uoregon.edu!dispatch.news.demon.net!demon!netcom.net.uk!netcom.com!stanb
From: stanb@netcom.com (Stan Brown)
Subject: Re: User mode PPP not hanging up modem
Message-ID: <stanbE0u5En.51n@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
X-Newsreader: NN version 6.5.0 #3 (NOV)
References: <stanbE08zHy.3H3@netcom.com> <55jq3p$1rt@anorak.coverform.lan>     <stanbE0CHGM.wF@netcom.com> <55m2ha$3eg@anorak.coverform.lan>     <stanbE0HA0H.K9H@netcom.com> <5639ir$huf@anorak.coverform.lan>     <stanbE0n1n8.FKC@netcom.com> <56aenl$4or@anorak.utell.net>
Date: Thu, 14 Nov 1996 00:59:11 GMT
Lines: 225
Sender: stanb@netcom15.netcom.com

brian@anorak.utell.net (Brian Somers) writes:

>In article <stanbE0n1n8.FKC@netcom.com>,
>	stanb@netcom.com (Stan Brown) writes:
>: brian@anorak.coverform.lan (Brian Somers) writes:
>: 
>[.....]
>>>Are you saying that ppp behaves this way using the same equipment as you
>>>did with kermit ?  If so, you *must* be running ppp in some wierd way
>>>so that it doesn't see the HUP.
>: 
>>>What do your config files look like, and how are you starting ppp ?
>: 
>: 	That's *exactly* what I am saying.
>: 
>: 	It's auto dialing out. I could send you my the files from
>: my /etc/ppp directory if youre interested. 
>: 
>: 	Does it hang up the phone for you ?

>Works fine for me.  Can you post your config files, and stty settings for
>the port (stty -a -f /dev/cuaa?) ?  The only thing I can think of at this
>point is CLOCAL.  You don't have something dodgy in /etc/rc.serial do you ?

	Sure here thay are:

/etc/ppp.conf

#################################################################
#
#  	PPP  Sample Configuration File
#
#	  Written by Toshiharu OHNO
#
# $Id: ppp.conf.sample,v 1.3.4.3 1996/06/17 09:17:50 jkh Exp $
#
#################################################################
#
# Default setup. Executed always when PPP is invoked.
#
default:
 set device /dev/cuaa0
 set speed 38400
 disable lqr
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
#
# Example with login script
#   o From PPP prompt,
#	ppp> dial awod
#     will automatically dials and perform login procedure.
#
#       ppp> load awod
#     will also load and execute commands, but don't dial.
#
#   o From shell, invoke as
#       % ppp awod
#     will load commands associated with the label. Use,
#       ppp> dial
#     to establish the connection.
#
awod:
 set phone 7692051
 set login "TIMEOUT 10 name>-\\r-name> stanb word> 611_no_more(- tion: 2\r"\""
 set timeout 600
 set ifaddr 127.1.1.1/0 127.1.1.2/0
 add 0 0 127.1.1.2
#
# Multi-phone example
#
multiphone:
 set phone 12345678:12345679:12345670:12345671
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
#
# If peer requires to use CHAP, don't forget to supply authname and authkey.
#
# If you'd like to use CHAP to authentication peer, comment out the line
# ``enable chap'' below. You also need to prepare /etc/ppp.secret.
#
# If remote system sends its system name within CHAP packet and it is
# found in /etc/ppp.secret, then secret key is taken from the file and
# value of authkey is ignored.
#
chapsite:
 set phone 12345678
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 deny pap
 accept chap
# enable chap
 set authname MySystemName
 set authkey  OurSecretKey
#
# To speak PAP is just similar to CHAP
#
papsite:
 set phone 12345678
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 deny chap
 accept pap
# enable pap
 set authname MyUserName
 set authkey  MyPassword
#
# On demand dialup example
#  Here, we assume that local side use 192.244.185.226 and
#  remote side use 192.244.176.44 as their IP address.
#  You must supply -auto option to invoke PPP.
#
#  ex. % ppp -auto ondemand
#
ondemand:
 set phone 1234567
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 set timeout 120
 set ifaddr 192.244.185.226 192.244.176.44 255.255.255.0
 add 0 0 192.244.176.44
#
# Another on demand example
#  If peer assign some IP address for us, and we can't predict it
#  until we make a connection, use 0 as local side address.
#
pmdemend:
 set phone 1234567
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 set timeout 120
 set ifaddr 0 192.244.176.44 255.255.255.0
 add 0 0 192.244.176.44
#
# Example to validate incoming user with CHAP
#  Invod as ``ppp -direct users'' from login script. User's system name
#  and secret-key must be registered into /etc/ppp.secret.
#  IP address assigned to peer is registered in ppp.secret, then that
#  value is used and value in ``ifaddr'' command has no effect.
#
users:
 disable pap
 enable chap
 enable  proxy
 set authname ppp-server
 set ifaddr 192.244.176.44 292.244.184.31
#
# Example of Callback Request
#
#  Here, we assume that peer will hangup the line and initiates a callback
#  after successful authentication. We simply use chat script capability
#  and wait for a "NO CARRIER" response from our modem.
#
#  % ppp callback
#
callback:
 set phone 0312345678
 set login "ABORT NO\\sCARRIER TIMEOUT 5 login:-\\r-login: MyName word: MySecret TIMEOUT 20 DUMMY"
 set debug phase chat
 dial
 quit
#
# Example for PPP/TELNET and PPP/TCP. Read doc for further details
#
ppptelnet:
 set escape 0xff
ppptcp:
 set device 192.244.191.33:2400


/etc/ppp.linkup

#########################################################################
#
#          Example of ppp.linkup file
#
#
#  This file is checked when PPP establishes network level connection.
#  PPP command searches label in this file in following way and order.
#
#  1) At first, IP address assigned into our side is searched and execute
#     associated command.
#
#  2) If it didn't found, then label name specified at startup time is
#     searched.
#
#  3) If given label name is not found, then label MYADDR is searched.
#
# $Id: ppp.linkup.sample,v 1.1.1.1.4.3 1996/06/17 09:17:53 jkh Exp $
#
#########################################################################
#
# If we've got 192.244.176.32 as our address, then regard peer as a gateway
# to 192.244.176.0 network.
#
#192.244.176.32:
# add 192.244.176.0 0 HISADDR
#
# If we are invoked with an argument ``iij-demand'', then
# delete existing route entry and add peer as default gateway.
#
iij-demand:
 delete ALL
 add 0 0 HISADDR
#
# Otherwise, simply add peer as default gateway.
#
MYADDR:
 delete ALL
 add 0 0 HISADDR

	and I get seem to get the port setting here is a typescript run
as root, while ppp *was not* running.


Script started on Wed Nov 13 19:46:47 1996
$ ls -l /dev/cuaa?
crw-rw----  1 uucp  dialer   28, 128 Nov 13 19:47 /dev/cuaa0
crw-rw----  1 uucp  dialer   28, 129 Oct 17 11:48 /dev/cuaa1
crw-rw----  1 uucp  dialer   28, 130 Oct 17 11:48 /dev/cuaa2
crw-rw----  1 uucp  dialer   28, 131 Oct 17 11:48 /dev/cuaa3
$ stty -a -f /dev/cuaa0
stty: /dev/cuaa0: Permission denied
$ ^D
Script done on Wed Nov 13 19:47:28 1996

-- 
Stan Brown     stanb@netcom.com                                    404-996-6955
Factory Automation Systems
Atlanta Ga.
-- 
Look, look, see Windows 95.  Buy, lemmings, buy!   
Pay no attention to that cliff ahead...            Henry Spencer
(c) 1996 Stan Brown.  Redistribution via the Microsoft Network is prohibited.