From owner-freebsd-isp Sat Jun 1 11:26:26 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA15841 for isp-outgoing; Sat, 1 Jun 1996 11:26:26 -0700 (PDT) Received: from netpc.com (root@netpc.com [206.7.246.1]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA15824 for ; Sat, 1 Jun 1996 11:26:15 -0700 (PDT) Received: (from root@localhost) by netpc.com (8.6.12/8.6.9) id NAA01065; Sat, 1 Jun 1996 13:26:29 -0500 Date: Sat, 1 Jun 1996 13:26:26 -0500 (CDT) From: root To: John Hart cc: John Capo , freebsd-isp@freebsd.org Subject: Re: PPP Server In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Also was wondering, with the configuration below, if i have the options.ttydx file and a ~username/.ppprc file and a user calls into the a given node that has a options.ttydx line it uses the ip address i have in the options.ttydx file and not the ~username/.ppprc file how is this fixed so that i can have a ip address on the modem so that if a user dials in and they dont have a ~username/.ppprc file they get they get the modem ip and if they do have have .ppprc file they get there own static ip address? ---------------------------------------------------------------------------------- Full Service Internet Provider| NETPC | Contact Us By Email Custom Web Page Development | Long Grove,IL | ================== Network Consulting | (847)540-6209 Sales | sales@netpc.com Complete Business Solutions |(847)540-6035 Fax & Data| sysadmin@netpc.com | Monday-Friday 8-5pm | webmaster@netpc.com Get Connected To I-NET Today! | Sat 8-12 Sun 12-4 | support@netpc.com ------------------------------------------------------------------------------- On Mon, 27 May 1996, John Hart wrote: > On Mon, 27 May 1996, John Capo wrote: > > > Basically you have to write some scripts that exec ppp/pppd/sliplogin > > with the proper arguments. The script is the login shell for your > > dial-up IP users. > > > It really isn't all that hard, and doesn't require much detail. > > > Scripts for static IP users could be as simple as one script per > > user with the IP address in the script. Or you could use a common > > script and look up the IP address based on the users logname. Perl > > would be good for this. > > > Again, this can be taken care of much easier. > > > Dynamic IP is a bit more difficult. The folks that I have talked > > to that actually made it work and were satisfied with the scheme > > used an IP address based on the tty port the login is on. Any > > other scheme for picking the address to use has race conditions > > that have to be dealt with. > > > Much easier to do than you think, John. > > First, as a login shell use /usr/sbin/pppd. Then, in /etc/ppp create one > file for each tty that has a modem connected to it. These files will be > called options.ttyd# where # is the dialin #. In these files place a > colon followed by the ip address of that tty. For example: > > :198.109.196.100 > > That ip address is now assigned to that tty as a static for that tty. > This is useful because: > > #1 - It allows users with a personal dialin to have a static ip. > #2 - It sets up the dynamic ip addresses for all other users. > > If you have a user that does not have a personal dialin and needs a > static ip, then add a ~(username)/.ppprc file and in there place the same > as above in it. The last file you will need is a /etc/ppp/options file. > In there the following should get you working: > > crtscts > modem > proxyarp > debug > > -detach > 198.109.196.2: > netmask 255.255.255.0 > > If you follow the steps above you should be online within a few hours. I > know this works with your setup, also, because we also use Boca 16 Port > Boards, and even have Boca Rack-Mount modems. If you have any trouble, > drop me some mail. > > John > ------------------------------------------------------------------------------- > John Hart, System Administrator Technet Internet Services > dashadow@tchnet.com (517)796-8200 > ------------------------------------------------------------------------------- > >