Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 May 1997 12:20:33 -0500 (CDT)
From:      "Jay D. Nelson" <jdn@qiv.com>
To:        "Gary D. Margiotta" <gary@tbe.net>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Dialin PPP
Message-ID:  <Pine.NEB.3.95.970503120537.425A-100000@acp.qiv.com>
In-Reply-To: <Pine.BSF.3.95q.970502234422.4330B-100000@lightning.tbe.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is what works for me. On the server, I use the normal getty and
create a ppp user like:

Puser:*:1000:1000:PPP User:/tmp:/usr/local/libexec/ppp-login

The ppp-login script looks like this:

#!/bin/sh
/usr/bin/mesg n
stty -tostop
exec /usr/sbin/pppd proxyarp 192.168.1.1:192.168.1.2

The client dials in using a script that looks like this:

#!/bin/sh
/usr/sbin/pppd connect '/usr/bin/chat -v ABORT BUSY "" \
        \\d\\dAT\\sE0\\sQ0 OK \\dATS7=60\\sS38=40 OK \
        \\dATDT3262964 CONNECT "" ogin: Puser word: Ppasswd' \
        /dev/cuaa1 115200 crtscts \
        modem lock debug netmask 255.255.255.0 \
        noipdefault defaultroute :192.168.1.1
exit 0

I have all my modems set up to be absolutely quiet -- no echo no
reporting. Also set up for hardware flow control and reset on carrier
loss.

There an infinite variety of ways in the login script to do IP
assignment -- or create one ppp-login.x script for each port. I know
nothing of Win95 and intend keeping it that way, but I assume the
"dial up networking" includes a script mechanism. I would suggest
using it.  Use the terminal for debugging. If you can login normally
and get a bunch of garbage with braces in it, your server is working
fine.

-- Jay

On Fri, 2 May 1997, Gary D. Margiotta wrote:

->Hello,
->
->I am sorry if I am wasting your time with this, since it is probably some
->stupid little file I missed, but I don't know who else to ask, and was
->referred here.
->
->I recently purchased a Cyclades 8Yo multiport serial card, and am trying
->to set up a terminal server with FreeBSD using mgetty.  I have compiled
->the new kernel for the Cyclades card, made the device nodes and have been
->successful in getting mgetty compiled and running.  I am at the point now
->that if I dial in with a modem under Win95, with a direct connection to
->the machine (hyperterminal or even a terminal window using dial-up
->networking), I can get a prompt and login with no problem.  When I dial in
->using dial-up networking, I bring up a terminal window to see how far I
->get.  It connects, negotiates, and goes through the normal login
->procedure, and when I choose to have it start the ppp session, it does the
->usual verifying username and password and minimizes as if I had acheived a
->clean connect.  When I go to do something, such as even pinging the
->machine I am dialing into, I get no response...everything just dies right
->there.
->
->We have been trying everything we could read and get our hands on, but the
->documentation on mgetty isn't too clear (or we just aren't interpreting it
->correctly).  I am not sure which files need to be added to and/or modified
->anymore.  I was also using as a guideline a page from an ISP in N.Y. who
->has the same set up, all working correctly under LINUX.  I wrote him, and
->he said I wouldn't have to do anything special, stating that it should run
->fine without any extra modification (other than the usual differences in
->directory and file names) under BSD.
->
->I have been trying to replicate the 'Working as a PPP server' part of the
->handbook with the /etc/ppp/options file, but I really am not too straight
->on the way to assign IP Addresses (right now I just want one to work, I am
->not worried about assigning multiple dynamic IP's yet).  Mgetty should be
->calling pppd automatically, and it seems to, but there is just something
->wrong or missing with the config files and there are so many of them that
->we don't know what exactly controls what (we have ideas, but it is hard to
->narrow things down when there are several files which may or may not have
->an affect).
->
->The machine is a 386-DX/33 with 16 Mb of RAM, running FreeBSD
->2.2.1-Release, mgetty+sendfax 1.0.0, and pppd 2.2.0.  I have a Cyclades
->8Yo 8-port multiport card.  The modem I am using on the sending end is a
->USR Sportster 33.6, and the modem on the receiving end is a Boca 28.8,
->soon to be replaced with said USR 33.6.
->
->This is most likely a stupid problem, but it is so frustrating when you
->know that it partly works...
->
->Thanks.
->
->-Gary Margiotta
->TBE Internet Services
->http://www.tbe.net
->
->




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.970503120537.425A-100000>