Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 1996 20:16:08 -0400 (EDT)
From:      John Hart <dashadow@tchnet.tchnet.com>
To:        John Capo <jc@irbs.com>
Cc:        root <root@netpc.com>, freebsd-isp@freebsd.org
Subject:   Re: PPP Server
Message-ID:  <Pine.BSF.3.91.960527200556.16732A-100000@tchnet.tchnet.com>
In-Reply-To: <199605272106.RAA04291@irbs.irbs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
-------------------------------------------------------------------------------





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960527200556.16732A-100000>