From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 19:30:35 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6430B16A4BF for ; Mon, 8 Sep 2003 19:30:35 -0700 (PDT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B71943FBF for ; Mon, 8 Sep 2003 19:30:32 -0700 (PDT) (envelope-from freebsduser@comcast.net) Received: from comcast.net (12-225-143-41.client.attbi.com[12.225.143.41]) by comcast.net (sccrmhc12) with SMTP id <2003090902302901200q5tf8e> (Authid: animotions); Tue, 9 Sep 2003 02:30:29 +0000 Message-ID: <3F5D3B38.8050304@comcast.net> Date: Mon, 08 Sep 2003 19:30:16 -0700 From: K Anderson User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Your Name References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@FreeBSD.org Subject: Re: dail in server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 02:30:35 -0000 Your Name wrote: > Hi all > > Does freebsd provide dialin server function? > > If yes, please give me hint > > I can't get information in the documentation > > Thank you > > Hint - Search google. But seriously, I searched google and here's what I found. Dial-in service FreeBSD 3.2 04/03/2000 A. B. Wallace Most modems come preset for dial-out service. To make your modem answer incoming calls, several steps need to be taken. 1. Install your modem. 2. Edit /etc/rc.serial to reflect the proper port for your modem. Uncomment the line modem d a 1 for a modem on COM2. If your modem is on COM1, edit the line to read modem d a 0. Be sure to check the speed settings in the modem() section to see if they are reasonable. Most V32's should be set to 38400 and V42's to 56700. 3. Check to see if your modem's port is listed in /etc/remote. Make sure the device file points to the correct port. For a V42 modem on COM2, the line should read cuaa1:dv=/dev/cuaa1:br#57600:pa=none: 4. Use tip in FreeBSD to set the modem's nvram for echo off (E0), no result codes (Q1), and auto answer (&S0=1). Then write the current profile to nvram and reboot the machine. Here is the AT command sequence. AT commands must be typed in separately. at&v show current profile ate0 turn off echo atq1 turn off result codes at&s0=1 turn on auto answer at&y0 load new profile on boot at&w0 write new profile 5. Reboot your machine to load the new modem profile. 6. Edit /etc/ttys and uncomment the proper dial-in port line and set dialup to on. Be sure to set your speed according to your modem. For V32's, the line should read something like ttyd1 "/usr/libexec/getty std.38400" dialup on insecure For V42's, set the speed to std.57600. 7. Start the getty process on your modem by typing kill -1 1 or kill -HUP 1. The output from ps ax should show a line running a getty process on the modem's port. 935 ?? I 0:00.02 /usr/libexec/getty std.38400 ttyd1 8. Test the dial-in connection from another machine. If all is correct, you should get a login prompt. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message