Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Mar 1999 13:00:20 +0200
From:      "Paul" <paul@rad.co.za>
To:        "'George Yobst'" <george@lincc.lib.or.us>, <questions@FreeBSD.ORG>
Subject:   RE: Kernel pppd
Message-ID:  <001001be790a$2cc20820$a2ca16c4@alnilam.rad.co.za>
In-Reply-To: <Pine.BSF.4.05.9903261432150.1093-100000@lincc.lincc.lib.or.us>

next in thread | previous in thread | raw e-mail | index | archive | help


-----Original Message-----
From:	owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of George Yobst
Sent:	Saturday, March 27, 1999 12:56 AM
To:	questions@FreeBSD.ORG
Cc:	George Yobst
Subject:	Kernel pppd

Hi all,

I'd like to hang 2 modems off my FBSD box (that's already on the net
& running 3.1-Release) so that I can dial-up to it from home (W95).
I tried to configure pppd and looked at the Pedantic PPP docs, but
it seems written for dial-out.  It looks like it's dialing up, the
modem answers so I get a connection, but then it won't go further.

Right now, the log messages are:
Mar 26 14:43:48 lincc pppd[1180]: Connect: ppp0 <--> /dev/ttyd0
Mar 26 14:44:18 lincc pppd[1180]: LCP: timeout sending Config-Requests
Mar 26 14:44:18 lincc pppd[1180]: Connection terminated, connected for 1
minutes
Mar 26 14:44:19 lincc pppd[1181]: pppd 2.3.5 started by root, uid 0

I've changed so many parameters, that I'm just chasing my tail.
Does anybody have multiple modems on their machine doing 'kernel
ppp' care to share their configs in /etc/ppp - also pertinent parts
of /etc/passwd & ttys would be greatly appreciated.  Anything special
on the W95 sw need to change?

I got it working GREAT using the pap-secrets file BUT I'm battling to get it
to work using the BSD password database. My setting are;

1. Make a file called  /etc/ppp/server_options containing the following;

/dev/cuaa0 115200         #whatever port your modems on
crtscts
modem
connect "/usr/bin/chat -f /etc -f /etc/ppp/dialin"
passive
<Your Servers IP Here>:<Your Windows 95 IP Here>
netmask 255.255.255.0
auth
proxyarp
ms-dns <Your Primary DNS Here>
ms-dns <Your Secondary DNS Here>
require-pap

2. Make a file called /etc/ppp/dialin containing the following;

"" AT&C1&D3&K3&Q6S0=1&W OK ATZ OK	#or whatever sets your modem to answer

3. Make a file called /etc/ppp/pap-secrets using this format;

<username><tab><FQDN of Server><tab><password><tab>*

george	buggy.Foo.com	abracadabra	*

4. Make sure the pap-secrets file is read write only by root <chmod 600>

5. Use the following at the command line OR in you start up scripts;

pppd file /etc/ppp/server_options


I DID NOT Modify my tttys,rc.serial or any of the other files and I DID NOT
use getty or any of the other stuff you see in numerous posts.
While I'm sure I might not be 100% correct, I notice no other posts in
helping you with your problem,and this worked great for win95 clients for
me, and was very simple to set up.
What I couldn't get to work was the use of the BSD boxes password database,
If you add the <login> option to your options( server_options ) file AND
then leave the password blank in your pap-secrets file it's supposed to use
the normal BSD password database. But for the life of me I couldn't get this
to work.

 The reason I'm using a file called server_options is that I presume your
already running pppd for your other connection to the net. So you wouldn't
want it to use the same options file as that connection uses, hence the pppd
<file> statement instructs pppd to use a DIFFERENT options file for this
connection.


Thanks! -George
---------------------------------------------------------------------
George Yobst, Automation Specialist     email: george@lincc.lib.or.us
LINCC                                   phone: 503-794-3890
16239 SE McLoughlin Blvd, Suite 208       fax: 503-655-8555
Oak Grove, OR 97267-4654            webmaster: [www.]lincc.lib.or.us
"...it is impossible for anyone to begin to learn
 what he thinks he already knows."  - Epictetus



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001001be790a$2cc20820$a2ca16c4>