PPP SHELLS FOR LINUX ISP'S
1996 Mike Holloway
mikeh@ticnet.com


This package includes shell scripts that you can use to provide
dial-up PPP accounts to users.  The scripts are designed to provide
either static IP's based on the user's login name, or dynamic IP's
based upon the login port.

At this point, I assumed a couple of things:

1. You have already configured your uugetty to handle your modem
   ports and those ports are now capable of login.

2. You have awk and the bash shell installed.


To install this package, simply copy all these files into the
/etc/ppp directory.

The following script need to be changed to reflect your configuration :

ppp.sh - Change the IP's to your own and add any names for static IP's
         that you want for certain users.  Also be sure that the TTY's
         are correct (I use cyclades 16Y port boards, and my ports are
         labeled ttyC0 thru ttyC31.

bye.sh - Change the phone number to your customer support number.

dupealert.sh - Change the phone number to your customer support number.


At this point, you should be ready to use the scripts.     

A few quick notes : 

To make the system check for a duplicate log in by the user, make the user's
login shell (in the /etc/passwd file) /bin/bash /etc/ppp/dupecheck.sh .
This will cause the login to be examined against who is currently logged into
the system, and will either launch the ppp.sh if everything is good, or
will launch dupealert.sh if it is a duplicate login.  dupealert.sh will
notify the user not to perform duplicate logins, and will write the attempt
to the file dupes.log.  VERY IMPORTANT : if you use this shell (like I do),
be SURE that you "chmod 777 dupes.log" to get the system permission to write
to that file.

If you really don't care that your user is going to tie up 5 of your modems
at the same time, you can make the user's shell /bin/bash /etc/ppp/ppp.sh
and this will bypass the dupe check procedure.  I really don't recommend
it, unless you only give it to yourself and your staff... :)

If you have a user that doesn't pay his bill, change his shell to
/bin/bash /etc/ppp/bye.sh ... that should get him to pay. :)

Welp, that's about it.  Good luck. Hope I've made things a little easier
for ya.  I you have any questions, feel free to write. 


   
