From owner-freebsd-questions Sun Jan 26 15:45:40 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA02499 for questions-outgoing; Sun, 26 Jan 1997 15:45:40 -0800 (PST) Received: from python.shoal.net.au (root@python.shoal.net.au [203.26.44.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA02484 for ; Sun, 26 Jan 1997 15:45:24 -0800 (PST) Received: from grfpc1 (monty-port1.shoal.net.au [203.26.44.11]) by python.shoal.net.au (8.8.4/8.7.3) with SMTP id KAA25612; Mon, 27 Jan 1997 10:44:30 +1100 (EST) Message-ID: <32EBFA80.4E5D@shoal.net.au> Date: Mon, 27 Jan 1997 10:44:48 +1000 From: Andrew Perry X-Mailer: Mozilla 2.02Gold (Win95; I) MIME-Version: 1.0 To: "M.C Wong" CC: questions freebsd Subject: Re: [2.1R] PPP login problem using user ppp (iijppp) and pppd References: <19970119091618.8116.qmail@hotmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Sorry about the delay, I've had this in my mail for a while and haven't got around to answering it. (iijppp - I haven't tried pppd yet) For starters did this use to work with another ISP? If so then tun0 is probably ok otherwise you may have to have a look in the handbook on how to set it up, however if you use dynamic ip addresses don't put the ifconfig_tun0 line in your /etc/sysconfig as ppp works it out for you and if you disconnect and reconnect you'll have problems. To connect I do the following: ppp ppp ON circus> set device /dev/cuaa1 ppp ON circus> set speed 57600 ppp ON circus> set parity none ppp ON circus> set timeout 1200 ppp ON circus> accept chap ppp ON circus> disable pap ppp ON circus> set authname username ppp ON circus> set authkey password ppp ON circus> set openmode active ppp ON circus> set ifaddr 0 0 ppp ON circus> term atdt225003 (connect modem to isp) At this stage we get a menu and i put in my username and password, select ppp from a menu and ppp switches to packet mode. Yours may be different. Your prompt should change from ppp to PPP: PPP ON circus> which indicates that ppp is up and running. I'm not 100% sure what some of these commands do, and i've put them all in my /etc/ppp/ppp.conf along with a set dial command and set login command script which automatically log me into my isp. I did a bit of experimenting and found that i needed set openmode active for it to work (but don't know what it does - anyone?) and set ifaddr 0 0 which sets your ip address and his ip address according to what he tells you. I hope this helps. Andrew Perry mailto:andrew@shoal.net.au M.C Wong wrote: > > Hi, > > I have a problem using both iijppp and pppd to login to my new ISP using > FreeBSD 2.1R. > > However, when using Windows95 to connect to the same ISP *without* > scripting, there is no problem at all. For this reason, I have to > temporarily resort to using Windows95 running wingate to enable the > other UNIX boxes to have partial Internet accessibility. > > I realize this is *not* a problem with FreeBSD itself and my ISP > cannot help either, so what I am trying to do is to gather info from > people with great knowledge of Windows95 dial-up PPP *without* > login script and be able to give me some assistance, so that I can > figure out what is the difference betwee Windows dial-up PPP and > iijppp/pppd on FreeBSD. If I am able to figure the difference, I may > be able to set up the right configuration files to use. > > Right now, the setting for Windows95 is that I obtain dynamic IP > address from ISP and have no idea about authentication (yes, it is > needed as login id and password are needed during login) scheme as > well as the login protocol. On the Win95 end, the Connection and > Server Type is set to PPP: Windows95, Windows NT 3.5, Internet. > When I use plain dial-up from FreeBSD to connect to my ISP, I do not see the > > Login: > Password: > > pairs, so I believe the login scheme is *not* set up that way but > relies on either PAP or CHAP, and I tried both schemes using iijppp > but both do not work and the ppp session never goes beyond LCP part. > Querying this to the hopeless ISP "customer service" does not give > me any useful response either since they don't even know what PAP > and CHAP are, let alone which scheme they are using, 8-(((. However, > I am not considering changing ISP for now. > > Please help if some of you W95 + FreeBSD guru can think of anything > that may be of relevance to my case. > > Thanks in advance. > > --------------------------------------------------------- > Get Your *Web-Based* Free Email at http://www.hotmail.com > ---------------------------------------------------------