#!/bin/sh

#
# $Id: INSTALL,v 1.2 1999/12/16 03:56:45 del Exp $
#

echo "This is not an installation script.  Read it.  Don't run it."
exit 0

Installation instructions:

-	MAKE SURE YOU ARE INSTALLING THIS AS ROOT. OTHERWISE SOME
	FILES MAY NOT BE INSTALLED OR CONFIGURED CORRECTLY!

-	Make sure that you have apache and PHP installed (tested with
	apache-1.3.9-4 and php-3.0.12-6 from Red Hat 6.1 but should
	work with others).

-	Make sure that you have ipchains installed.  You will also
	probably want ipmasqadm from redhat/contrib.  Tested with
	ipchains-1.3.9-3 from Red Hat 6.1 and ipmasqadm-0.4.2-3

-       Make sure that you have sudo installed in the path for the user
	user in question.  I had it installed in /usr/bin with the
	/etc/sudoers file looking as follows:
		nobody   ALL=NOPASSWD:/home/httpd/html/phpchains/fwscript, /sbin/ipchains
	This worked fine for me but be careful what you add as it could
	lead to security leaks.  Also note that sudo is not built
	by default.  You will have to cd to the sudo-1.6 directory
	and run ./configure and the usual make and make install.  Read
	the documentation for more details.

-	make install

-	Make sure that the files in /home/httpd/html/phpchains/ are
	readable by the HTTP daemon user (often httpd or nobody) and
	that the files in /var/lib/phpchains are readable AND writeable
	by this user.

-	The script gets copied into /home/httpd/html/phpchains/ so you
	should be able to access it as http://<this_host>/phpchains/

-	Make sure that the files created in /var/lib/phpchains make
	sense, particularly the "interfaces" file.  The netobjects
	and rulesets file can be edited with the script, so no point
	in making any changes to those.

-	To set it so that the firewall chains will reappear after a reboot
	edit your rc.local file and add the line below:
		/sbin/fwscript
-	That is it.  This will cause the  script to run at boot and reload
	all chains that were last built into it.
