From owner-freebsd-questions Fri Jul 25 17:30:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA04360 for questions-outgoing; Fri, 25 Jul 1997 17:30:44 -0700 (PDT) Received: from tok.qiv.com ([204.214.141.211]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA04353 for ; Fri, 25 Jul 1997 17:30:41 -0700 (PDT) Received: (from uucp@localhost) by tok.qiv.com (8.8.5/8.8.5) with UUCP id TAA06355; Fri, 25 Jul 1997 19:30:25 -0500 (CDT) Received: from localhost (jdn@localhost) by acp.qiv.com (8.8.5/8.8.5) with SMTP id TAA00490; Fri, 25 Jul 1997 19:17:31 -0500 (CDT) X-Authentication-Warning: acp.qiv.com: jdn owned process doing -bs Date: Fri, 25 Jul 1997 19:17:31 -0500 (CDT) From: "Jay D. Nelson" To: David Greenman cc: questions@FreeBSD.ORG Subject: Re: setting up dialup In-Reply-To: <199707250009.RAA14982@implode.root.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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