*BSD News Article 58907


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!info.ucla.edu!library.ucla.edu!psgrain!nntp.teleport.com!usenet
From: blake <blake1@netcom.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Yet another PPP Question (sick of them yet?)
Date: 6 Jan 1996 17:57:53 GMT
Organization: Teleport - Portland's Public Access (503) 220-1016
Lines: 48
Message-ID: <4cmd71$nk3@maureen.teleport.com>
References: <4ckac1$kra@maureen.teleport.com>
NNTP-Posting-Host: ip-pdx12-48.teleport.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.22 (Windows; I; 16bit)

Well I may have found my own answer... although haven't got it working perfectly. It 
appears that the tun device is not necessary with 2.x.  The kernel has it's own ppp 
devices, and seems to use this without the necessity of making tun0. These are used 
for ifconfig, defaultroute, etc.

Getting it to work requires that one uses ttyd0? device as the modem port, as 
opposed to tty0?, to configure kermit to make the connection.

ppp.conf is not used, only the /etc/options file.

Now that I can get the machine to dial out, connect and do the ppp thingy... my 
question is now how to make a ppp server?  I can get ttyd0 to answer and the pppd 
to start up... although haven worked all the bugs out of getting ppp packets back to 
the client.  However, once I terminate the call, pppd dies and the modem no longer 
answers.  

Anyone got any really nifty hacks to get a PPP server running up on a 2.0 box.

peace
Blake


blake <blake1@netcom.com> wrote:
>I have searched the FreeBSD manual and the FAQ, but have been having trouble getting PPP to 
>work.  (Got FreeBSD 2.0 from the CDROM)
>
>The manual says that you need to have the tun device added to the kernel then user MAKEDEV to 
>create it.  Well, I did this by, as instructed, adding the PSUEDO-DEVICE TUN 2 line to the 
>kernel and recompiled it.  Seemed to complile without errors, however ./MAKEDEV tun0 only gives 
>the error that it cannot make the device.
>
>My impression of the manual is to do the following;
>1. Port or get Kermit
>2. Verify the tun device (what's up with this)
>3. Create the /etc/ppp/options and /etc/ppp/ppp.conf files
>4. Then access the modem using kermit
>5. The rest of the steps omitted to save bandwidth. :)
>
>Anyway, do have this wrong, and why the heck doesn't the tun device wanna be created?  What TTY 
>stuff should I be looking at?
>
>BTW.. I can tip the modem and dialout just fine.  If you wanna see the manual point yer browser 
>to www.freebsd.org.
>
>Blake
>