Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 1997 19:17:31 -0500 (CDT)
From:      "Jay D. Nelson" <jdn@qiv.com>
To:        David Greenman <dg@root.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: setting up dialup
Message-ID:  <Pine.BSF.3.96.970725191108.465A-100000@acp.qiv.com>
In-Reply-To: <199707250009.RAA14982@implode.root.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Jul 1997, David Greenman wrote:
->------- Forwarded Message
[header snipped]
->
->I know this isn't the main stream subject for this list but I would really
->appreciate some help in the area of setting up a dialup using FreeBSD
->2.2.2 
->
->I have a Cyclades serial card, it's a card that multiple modems can be
->attached to it through one serial connection.
->My dialup needs to run both PPP and support VT100 emulation over a phone
->connection, i'm not really intrested in using ijppp I'm hopeing that I can
->use something else.

See below.

->I also am having a little dificulty getting my httpd server to respond to
->a connection request...it gives you the forbidden error message.  I know
->it's actually connecting to the httpd server because it leaves request
->lines in my log files, but I cannot get it to give me a proper acceptable
->connection.

I would check permissions, first.

->anyone who has experience in this area, any and all advice is,
->appreciated.
->
->Thanks very much
->
->Sasha Egan, 
->Belen Consolidated Schools
->(505)861-4981

This may be a bit arcane -- or even wrong, but this is what I do:

First, set up your modem correctly. Turn off echoing, set hardware
flow control, set the modem to reset on DTR drop and set the modem to
auto answer. Read your modem manual because modems vary.

This is from a Zoom modem:

STORED PROFILE 0:
B1 E0 L1 M0 N1 Q1 T V1 W1 X4 Y0 &C1 &D3 &G0 &J0 &K3 &Q5 &R1 &S1 &T5 &X0 
S00:001 S02:043 S06:002 S07:050 S08:002 S09:006 S10:014 S11:095 S12:050 S18:000
S36:007 S37:000 S40:168 S41:195 S46:138 S95:000 

Make sure you have the correct devices. /dev/ttyc? (I believe -- I
don't have a cyclades card.) If they're not there, run
MAKEDEV. Somebody help me here -- why wouldnt ttyd? work on the
cyclades?

Then set up /etc/ttys:

ttyd1   "/usr/libexec/getty std.38400"  vt100 on insecure
..etc..

Add a line like this for all the ports for which you have a
modem. Then either reboot the system or type in:

   kill -HUP 1

so that init rereads the configuration.

Then, create a user login:

username:*:1001:1001:User's Dialup PPP,,,:/usr/tmp:/usr/local/sbin/ppp-login

/usr/local/sbin/ppp-login is a script that looks like:

#!/bin/sh
/usr/bin/mesg n
stty -tostop
exec /usr/sbin/pppd proxyarp 10.1.1.1:10.1.1.129 # (localaddr:remoteaddr)

This part I've never done, but it would be my first cut: In addition
to the /etc/ppp/options file, I would add an /etc/ppp/options.ttyd?
file for each dial-in port that contained only local and remote IP
addresses and take the addresses out of the ppp-login script. Each
line will need its own IP address.

With the exception of the last part, I use this for dial-in and out,
ppp in and out as well as uucp in and out.

Anyone who has used this, I would be interested in knowing how you
handled multiple ports for dial-in and ppp.

-- Jay





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