Date: Sat, 1 Jun 1996 13:26:26 -0500 (CDT) From: root <root@netpc.com> To: John Hart <dashadow@tchnet.tchnet.com> Cc: John Capo <jc@irbs.com>, freebsd-isp@freebsd.org Subject: Re: PPP Server Message-ID: <Pine.LNX.3.91.960601132404.308F-100000@netpc.com> In-Reply-To: <Pine.BSF.3.91.960527200556.16732A-100000@tchnet.tchnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
> -------------------------------------------------------------------------------
>
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.91.960601132404.308F-100000>
