home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
ijlog_10.zip
/
ReadMe.txt
< prev
next >
Wrap
Text File
|
1999-02-13
|
8KB
|
204 lines
ReadMe.TXT
13. februar 1999
In-Joy firewall Logreader v1.0
Contents:
I. Introduction
II. Installation
III. Usage
IV. Trouble shooting
V. Contact information
VI. Greets
VII. Disclaimer
I. Introduction
This is CardWare. If you use it, send me a postcard.
SnailMail address is to be found near the bottom of this file.
This piece of software (actually pieces of software) is a
collection of scripts and HTML files for use with In-Joy 2.0
with the firewall plug-in and a HTTP-server. The purpose of
this program is:
- Maintain a user database
- Read/interpret the log files from In-Joy's firewall
- Present information in HTML format through the HTTP-
server
This doesn't say much about the intended use of the program,
so here's an example scenario:
Let's say you have a computer running In-Joy, using NAT
(masquerading) to share your internet connection with other
computers on a LAN. If you live in Norway or another country
where the telecom company charges you for the time you spend
on-line, you might wish to share the costs of the Internet
usage among all the computers (users).
In-Joy with it's firewall plug-in features some kind of
logging, but their contents are not formatted in a way that
make them suitable for providing this kind of information.
That's where this product comes into the picture: It uses
a userfile that contains the IP-address, name, address, amount
of money paid by the user, and the amount of time units spent
on the internet. It then reads the log files from In-Joy at
any interval (you need some kind of scheduler program to do
this - rsched is included in the archive), and updates the
userfile with the information it gets here.
The information in the userfile can be viewed via
Netscape or any other browser by running the included HTTP-
server (web/2 by dink - http://dink.cx). Here you will find a
list of the users that have been on-line during the last time
interval, and you will find a list of users where you can
select to view information on this one user. This information
includes IP-address, name, address, amount of money paid, time
spent on-line, and the current balance for the particular
user.
In addition, the userfile can be administered via this
HTTP server too. The admin pages contains the following
functionality:
- View statistics for the system
- View list of "unauthorized" IP-addresses (not in the
userfile)
- Add, remove and edit users in the userfile
- Adjust the usage or balance of all users at once, in
percent or exact values
- Set or reset the values for all users
II. Installation
Prior to installation, there's some steps you have to carry
out:
- Install a registered version of In-Joy 2.0. This is
necessary since the firewall isn't enabled/included with
non-registered versions.
- Install the web server included in this package, if you
haven't already. If you have another web server
installed, please read further down, where this is
discussed in detail. IMPORTANT: Make sure the web server
you use points to the directory where you choose to put
the main script and the HTML files (see below) as the
root directory! With WEB/2 this is done by running the
SETUP program that comes with it. With Apache or any
other web server, refer to its documentation.
- Install the scheduler program included in this package,
or use any other scheduler that supports running programs
at specific intervals.
In addition, you must create all the directories needed by
this package. They include:
- Directory for the main script and the HTML files
(suggested: \in-joy\logread).
- Directory for the data files
(suggested: \in-joy\logread\data).
- Directory for the scripts to be used by the web-server,
normally this will be the cgi-bin directory.
As soon as you have these things done, run SETUP.CMD with
the INSTALL parameter, like this: "SETUP INSTALL". This will
ask you where you want to place the different files, and where
the cgi-bin directory of your web-server is placed. Make sure
you get all of these directories right.
It will later ask if you want to install a sample
userfile. Note: This will OVERWRITE ANY EXISTING USERFILE! So
if this isn't the first time you install the package, please
make sure you don't overwrite your existing userfile with the
sample one.
You will then be asked how much you wish to charge per
time unit. One time unit is the time between each time the
script is run, e.g. 15 minutes. Since you at no point tell
this package how long time intervals you wish to use, you have
to decide this before installing it, and make sure your
scheduler program runs the main script at these intervals. The
value is to be entered with . as decimal separator, e.g. if
you want to charge $0.10 per time unit, enter 0.10 here.
Use with other web servers
What if you have another web server installed than the
one included here? Well, first you have to figure out the
WORKING DIRECTORY of the web server when it's running the
scripts. The reason for this is that the scripts used by the
web server looks for a configuration file in the CURRENT
DIRECTORY.
WEB/2, the server included here, has it's working
directory set to it's MAIN directory, no matter what files
it's sending to the browser. That means that the install
script copies the config file both to the cgi-bin directory
AND to its parent directory. If the working directory of your
web server is anything else than the cgi-bin directory OR its
parent directory (cgi-bin\..\), copy the configfile,
logread.cfg, there manually.
III. Usage
Use any browser (Netscape, Gecko, Opera, WebEx, Lynx,
Arena, whatever) to access the main page of the server. The
pages you see here is the pages that all your users should be
able to see. They include the information about who is using
the internet connection right now, and per-user statistics.
The administration pages can be accessed by specifying
"/admin.html" in the address field, after the host name. This
isn't password protected yet; this will come in a future
version. So just make sure your users don't know of this
file...
The pages should be self-explanatory.
IV. Trouble shooting
Problems? Try to figure it out yourself! The sourcecode
is there, read it. If you still have trouble, mail me, but
don't count on a reply... :)
V. Contact information
SnailMail:
Eirik Overby
Mekvn. 15D2
N-6400 Molde
Norway
EMail: ltning@mo.himolde.no
Web: http://www.mo.himolde.no/~ltning
IRC: Ltning / EFNet
ICQ: 24042847
VI. GreetZ
gemini - thanx for install.cmd ;)
SalvaMea - for needing this thing in the 1st place
AlterEgo - for sitting here, bored, while I was writing this
#kvamnett - for abusing this thing
#os2warez - for doing nothing to encourage me, except
MrWizard - umm.. finnish?
evtwin - he actually tried this thing..
VII. Disclaimer
Usual stuff. Use this at your own risk. I have no
responsibility whatsoever for any bad things this will do to
you, your family, your wife/husband, your lover, your
computer, your data, your... anything.. Seriously. But
ofcourse, if you earn millions of bucks from this, let me know
and take part in that.. ;)
Now get lost.
Thanks for reading.
GreetZ,
-Ltning