From owner-freebsd-questions Fri Mar 24 06:40:55 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA00973 for questions-outgoing; Fri, 24 Mar 1995 06:40:55 -0800 Received: from alpha.dsu.edu (root@alpha.dsu.edu [138.247.32.12]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id GAA00963 for ; Fri, 24 Mar 1995 06:40:53 -0800 Received: (from ghelmer@localhost) by alpha.dsu.edu (8.6.11/8.6.11) id IAA01004; Fri, 24 Mar 1995 08:28:24 -0600 Date: Fri, 24 Mar 1995 08:28:24 -0600 (CST) From: Guy Helmer To: bmk@dtr.com cc: Jan_Guldemond , bmk@dtr.com, questions@FreeBSD.org Subject: Re: Setting up a PPP server. In-Reply-To: <199503240808.AAA20663@dtr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@FreeBSD.org Precedence: bulk On Fri, 24 Mar 1995 bmk@dtr.com wrote: > > I hope you can make something like a FAQ, or if not please send me some > > info. I'm trying to set up a SLIP server (as soon as it runs I will try a > > PPP-server). But I think that the idea of dynamic IP adresses is the same > > for both. I can set up the SLIP server using the DOC's and FAQ's, but I > > can't find anything about dynamic IP-adresses. > > I am going to write a FAQ - basically my scheme for assigning dynamic > addresses works as follows: > > I wrote a script (ppplogin) that assigns an IP address based on which > port & host the user is calling in on. This script then spawns a pppd > process - ip-up gets called which sets up the route, ip-down gets called > when the session is done to clear the route. Sounds good - I was looking for help with dynamically-assigned IP addresses for PPP myself. I have changed sliplogin (from FreeBSD 1.1 sources) to support dynamic IP addressing based on a user's group (ie, "faculty" could have a different IP address group than "students") and the SLIP interface that was assigned to them. My changed sliplogin has been running in "production" since mid-January -- it's a hack, since it uses the SLIP interface # to determine the IP address, and then to report the IP address to the user, it has to switch back to the original line disc and then once again go into the SLIP line discipline. It uses a lock file to synchronize the transitions into the SLIP line discipline to minimize the chance of losing its original SLIP unit number (blech!)... The nice thing about my changes is that it doesn't change the format of /etc/slip.hosts and doesn't require any additional programs or scripts. I started looking at pppd's sources Wednesday and figured it wouldn't be hard to patch it for similar changes (it would be easier, since the remote receives its IP address though ppp's protocol). > Basically, the script does a lookup in an ASCII config file that > contains four entries: hostname, port, remote_ip_address, and > local_ip_address. I know this is vague - I'll make my scripts available > by ftp in the next few days - I should have a draft document by monday. > > I have tested it and it works well, but it has NOT gone into production > mode yet. Guy Helmer, Dakota State University Computing Services - ghelmer@alpha.dsu.edu