*BSD News Article 68197


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc,comp.protocols.ppp
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!inquo!in-news.erinet.com!imci5!imci4!newsfeed.internetmci.com!in1.uu.net!sys14!news
From: Con Sultant <jkane@execpc.com>
Subject: Re: FreeBSD and PPP (server side)
X-Nntp-Posting-Host: 192.43.105.164
Content-Type: text/plain; charset=us-ascii
Message-ID: <Dr6zFv.3Jq@deere.com>
To: goober@galatea.neptune.com
Sender: news@deere.com
Content-Transfer-Encoding: 7bit
Organization: Yes I Am.
References: <4mu271$594@mikasa.iol.it>
Mime-Version: 1.0
Date: Fri, 10 May 1996 13:43:07 GMT
X-Mailer: Mozilla 1.2 (Windows; U; 16bit)
Lines: 142
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:19102 comp.protocols.ppp:13823

I use pppd in my /etc/ttys file and let getty answer the line.  Of 
course, that does not allow for a login prompt.  I then have pap do the 
authorization.  Of course, I STILL have the problem of using the 
pap-secrets file as an authentication medium.  And would rather use the 
/etc/passwd as it, but that does not seem to work.  This is usnig WIN95 
as clients to a FreeBSD server.

I will give you my config files.  Maybe they will trigger something.


goober@galatea.neptune.com wrote:
>Here is the /etc/ppp/options file I am using:
>
>*************************************************************
>
>crtscts				#Hardware flow control
>netmask 255.255.255.0		#Netmask
>YYY.YYY.YYY.15:			#Home Page is on the YYY.YYY.YYY network
>				#PETCO will be the gateway to their network
>				#The serial port on the NT Server
>				#It is 'hard wired' into the NT Registry
>				#
>defaultroute			#Should I be using this???
>				#
>passive				#
>modem				# 
>
>***************************************************************

/etc/ppp #more options
netmask 255.255.255.0
xxx.xx.xx.25:xxx.xx.xxx.26
domain XXX.XXXX.com

# I wonder if the speed could be set here instead.
57600

# -detach makes the deamon not die
-detach

# passive tries once to communicate then waits for the other end
passive

# silent sends no packets until the other end initiates lcpc
#silent

# These are suppose to set up handshaking
crtscts
modem

# name must be set for pap to work
name myserver

# auth forces auth via pap/chap
auth
+pap
-chap

# login is suppose to use /etc/passwd, but it don't!
#login

# proxyarp needed for same subnet arping
proxyarp

# this send debugs to /var/log/messages
kdebug 1

# I dont think debug does anything!
debug
/etc/ppp #


You may want to look into the "kdebug" option.  It is what lead me to 
some answers.  The "debug" option did not send anything to the messages 
file for me either!

>
>This is the (admittedly very simple) etc/ppp/ppplogin I am using:
>
>#!/bin/sh
>stty 115200
>#if test `last | grep logged | grep -w $LOGNAME | grep -c ttyR ` -gt 1 ; then
>#   echo "one phone connection only is allowed per user"
>#   echo $LOGNAME `date` >> /var/adm/bums
>#   exit 0
>#
>/usr/sbin/pppd  /dev/ttyd0 asyncmap 0 debug  57600
>
>***************************************************************

Sorry, Not using ppplogin!  But I do use /etc/ttys.

/etc #more ttys      
#
#       @(#)ttys        5.1 (Berkeley) 4/17/89
#
# name  getty                           type    status          comments
#
# This entry needed for asking password when init goes to single-user 
mode
# If you want to be asked for password, change "secure" to "insecure" 
here
console none                            unknown off secure
#
ttyv0   "/usr/libexec/getty Pc"         cons25  on  secure
# Virtual terminals
ttyv1   "/usr/libexec/getty Pc"         cons25  on secure
ttyv2   "/usr/libexec/getty Pc"         cons25  on secure
ttyv3   "/usr/libexec/getty Pc"         cons25  off secure
# Serial terminals
#ttyd0  "/usr/libexec/getty std.57600"  dialup  off secure
#ttyd0  "/usr/sbin/pppd /dev/ttyd0 57600" dialup on secure
ttyd0   "/usr/sbin/pppd 57600"          dialup on insecure
ttyd1   "/usr/libexec/getty std.9600"   unknown off secure
ttyd2   "/usr/libexec/getty std.9600"   unknown off secure
ttyd3   "/usr/libexec/getty std.9600"   unknown off secure
# Pseudo terminals
ttyp0   none                    network
ttyp1   none                    network

This is where it gets to answer the phone, and starts pppd automatically. 
 ONly problem, as I said earlier is that it does not allow the use of 
/etc/passwd for auth.

So, here is my /etc/ppp/pap-secrets file.  (names changed)

# * * ""
user1 myserver password1
user2 myserver password2

The first entry is suppose to allow anybody in with no password, and the 
server name "myserver" MUST match the "name myserver" in /etc/ppp/options 
exactly, or it will fail every time.

>So, why does it not make the connection???

Not sure yet.  Try the "kdebug" and see where that gets you.

Good luck and Good beer to you ...

Jeff Kane    mailto:jkane@execpc.com  http://www.execpc.com/~jkane