*BSD News Article 70484


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!agate!ihnp4.ucsd.edu!swrinde!howland.reston.ans.net!Germany.EU.net!zib-berlin.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help needed: dynamic ip addresses - iijppp on FreeBSD
Date: 31 May 1996 18:06:36 GMT
Organization: Private BSD site, Dresden
Lines: 26
Message-ID: <4oncfc$df@uriah.heep.sax.de>
References: <31B6E216.5B24@dockside.co.za>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

Inus Scheepers <inus@dockside.co.za> wrote:

> Does anyone have some documentation and/or samples to help me serve
> ppp ip addresses with iijppp on FreeBSD 2.1? All clues much appreciated!

No idea on iijppp, but i've done it with kernel ppp in two different
ways.  For both methods, i wrote a Perl wrapper called ``ppplogin'',
that computes the required client address, and finally exec's
/usr/sbin/pppd with the appropriate set of arguments.

One of the methods (actually used on a low-scale non-commercial ISP)
is client-based, i.e. the login name of the client decides about the
IP address he will get.  The ppplogin script parses the SLIP
configuration files (so we have to maintain only a single config file
regardless of whether PPP or SLIP is used).

The other method i've been using was based on the incoming tty line.
I've added the tty minor number to a base address, so it was sure that
each tty gets a unique IP address.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)