From owner-freebsd-isp Mon May 27 17:16:48 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA12171 for isp-outgoing; Mon, 27 May 1996 17:16:48 -0700 (PDT) Received: from tchnet.tchnet.com (tchnet.tchnet.com [198.109.196.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id RAA12151 for ; Mon, 27 May 1996 17:16:38 -0700 (PDT) Received: (from dashadow@localhost) by tchnet.tchnet.com (8.6.12/8.6.9) id UAA17200; Mon, 27 May 1996 20:16:08 -0400 Date: Mon, 27 May 1996 20:16:08 -0400 (EDT) From: John Hart To: John Capo cc: root , freebsd-isp@freebsd.org Subject: Re: PPP Server In-Reply-To: <199605272106.RAA04291@irbs.irbs.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 -------------------------------------------------------------------------------