Date: Fri, 24 Mar 1995 08:28:24 -0600 (CST) From: Guy Helmer <ghelmer@alpha.dsu.edu> To: bmk@dtr.com Cc: Jan_Guldemond <jg@euronet.nl>, bmk@dtr.com, questions@FreeBSD.org Subject: Re: Setting up a PPP server. Message-ID: <Pine.OSF.3.91.950324081631.159A-100000@alpha.dsu.edu> In-Reply-To: <199503240808.AAA20663@dtr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.91.950324081631.159A-100000>