From owner-freebsd-isp Tue Mar 31 17:47:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA13553 for freebsd-isp-outgoing; Tue, 31 Mar 1998 17:47:48 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from firewall.scitec.com.au (firewall-user@fgate.scitec.com.au [203.17.180.68]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA13424 for ; Tue, 31 Mar 1998 17:47:12 -0800 (PST) (envelope-from john.saunders@scitec.com.au) Received: by firewall.scitec.com.au; id LAA03083; Wed, 1 Apr 1998 11:46:47 +1000 (EST) Received: from mailhub.scitec.com.au(203.17.180.131) by fgate.scitec.com.au via smap (3.2) id xma003054; Wed, 1 Apr 98 11:46:19 +1000 Received: from hydra.scitec.com.au (hydra.scitec.com.au [203.17.182.101]) by mailhub.scitec.com.au (8.6.12/8.6.9) with ESMTP id LAA29730; Wed, 1 Apr 1998 11:46:09 +1000 Received: from scitec.com.au (saruman.scitec.com.au) by hydra.scitec.com.au with ESMTP (1.40.112.8/16.2) id AA221255164; Wed, 1 Apr 1998 11:46:04 +1000 Message-Id: <35219C5C.91DFFF4A@scitec.com.au> Date: Wed, 01 Apr 1998 11:46:04 +1000 From: John Saunders Organization: SCITEC LIMITED X-Mailer: Mozilla 4.04 [en] (WinNT; I) Mime-Version: 1.0 To: freebsd-isp@FreeBSD.ORG Cc: Sasha Egan Subject: Re: Mgetty/AUTO_PPP/and ISP services. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Atipa wrote: > mgetty is evil. I wouldn't say that. I've been using it on an ISP for almost 2 years with great success. You just have to know how to configure it. > > All the things I have tried have ended in failure. > > When I uncomment the AUTO_PPP line in login.config my modem answers, > > handshakes, then carrier drops and resets. It sounds very much like your problem is either mgetty can't find your pppd program due to PATH problems. Or you haven't passed pppd sufficient options to make it work properly. Create a line like so on login.config... /AutoPPP/ - ppp /usr/sbin/ppplogin Then create a shell script (or C or perl if you like) called ppplogin that ends up running pppd with the following options... /usr/sbin/pppd auth refuse-chap require-pap login : \ file /etc/ppp/options.dialup idle 3600 ms-dns The "idle 3600" is optional depending on what you require. The host-ip and dns-server-ip are fixed, however you need some scripting to allocate a dialin-ip. The best bet is a simple case statement that maps a specific IP to a specific port. case `tty` in /dev/ttyc00) IP=a.b.c.d ;; /dev/ttyc01) IP=a.b.c.d ;; *) echo "port not configured" ; exit 1 ;; esac And the /etc/ppp/options.dialup file contains... nodetach crtscts modem proxyarp lcp-restart 8 lcp-max-configure 10 lcp-max-failure 4 ipcp-restart 8 ipcp-max-configure 10 ipcp-max-failure 4 One problem I had with mgetty is that it doesn't disable echo once it detects a PPP packet. This means that if your system is slow starting pppd then the client's PPP may detect what it thinks is a looped back line and hang up. I hacked the mgetty code to disable echo when it detects the PPP packet. Cheers. -- +------------------------------------------------------------+ . | John Saunders mailto:John.Saunders@scitec.com.au (Work) | ,--_|\ | mailto:john@nlc.net.au (Home) | / Oz \ | http://www.nlc.net.au/~john/ | \_,--\_/ | SCITEC LIMITED Phone +61 2 9428 9563 Fax +61 2 9428 9933 | v | "By the time you make ends meet, they move the ends." | +------------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message