From owner-freebsd-questions Tue Sep 30 23:06:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA19964 for questions-outgoing; Tue, 30 Sep 1997 23:06:58 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA19951 for ; Tue, 30 Sep 1997 23:06:48 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id PAA14909; Wed, 1 Oct 1997 15:31:36 +0930 (CST) Message-ID: <19971001153136.12270@lemis.com> Date: Wed, 1 Oct 1997 15:31:36 +0930 From: Greg Lehey To: Doug Lo Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FYI. My rules of thumb for configuring PPP by using PAP. References: <3431E08D.95EC08E1@ms11.hinet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <3431E08D.95EC08E1@ms11.hinet.net>; from Doug Lo on Wed, Oct 01, 1997 at 01:33:02PM +0800 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, Oct 01, 1997 at 01:33:02PM +0800, Doug Lo wrote: > Hi, ALL, > > I have spent the time to study how to configurate PPP by using PAP > without no problem. > The following files ppp.conf, ppp.linkup should work fine for who want > to use PAP. > I'm using FreeBSD 2.2.2-Release and my ISP uses 'dynamic IP > address". Thanks for the feedback, Doug. > =========== /etc/ppp/ppp.conf ============================= > default: > set device /dev/cuaa1 > set speed 115200 > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" > ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT" > > provider: > set openmode active ==> must add this line This depends on the ISP. It's becoming more common, though, so newer versions of User PPP do it by default. > set phone xxxxxxx > deny chap > disable chap > accept pap > set authname XXXXX > set authkey XXXXX You probably don't want to tell the world your authname and authkey :-) > dial > ===================================================== > Caution: DON'T ADD THIS LINE "set login" in ppp.conf. Again, this depends on your ISP. Your experience is more common here, too. > If your ISP uses "static IP address", add "ifaddr > xxxx xxxx xxxx" before 'dial'. > > ======== /etc/ppp/ppp.linkup ====================== > provider: > delete ALL > add 0 0 HISADDR > ============================================= > > When you finish editing these files, type ppp provide, the result is: >> ppp provider > User Process PPP. Written by Toshiharu OHNO. > Log Level is 281 > Using interface: tun0 > Interactive mode > Dial attempt 1 of 1 > Phone: xxxxxxx > dial OK! > login OK! > ppp ON Ariel> Packet mode. > ppp on Ariel> > ppp on Ariel> You'll proabably find it more convenient to start it with # ppp -background provide[r] See the man pages for alternatives. Greg