
Copyright (C) 2000, Jean-Sebastien Morisset <jsmoriss@jsm-mv.dyndns.org>
rc.firewall - the most complete and secure firewall for Linux.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the 
Free Software Foundation <http://www.gnu.org/copyleft/gpl.txt>.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License (LICENSE file in archive) for more details.

DESCRIPTION

rc.firewall is an ipchains-based firewall script with extensive support
for network services (IPSec, VTUN, NFS, SMB, Napster, Proxies, etc.), 
masquerading, port forwarding (including definitions for network games),
and IP accounting. All services are self-contained modules which can be
prioritized and installed easily. Protections include spoofing, stuffed
routing/masqerading, DoS, smurf attacks, outgoing port scans, and much 
more. rc.firewall also supports multiple private and public interfaces
with unique rules for each interface/service. This allows the creation 
of a De-Militarized Zone (DMZ).

************************************************************************
    IF YOU USE RC.FIREWALL IN A COMMERCIAL SETTING, PLEASE REFER TO 
    <http://www.jsmoriss.dyndns.org/linux/firewall.html#commercial>.
************************************************************************

FILES

The rc.firewall-5.0.tar.gz archive should includes the following files:

  ChangeLog               History of changes.
  FAQ                     Frequently asked questions.
  INSTALL                 Installation instructions and other notes.
  LICENSE                 General Public License (GPL)
  S11firewall             Startup script for Red Hat.
  firewall-modules.5.gz   Man page for /etc/firewall-modules directory.
  firewall-modules.tar    Tarball of firewall modules.
  firewall.conf.5.gz      The firewall.conf man page.
  rc.firewall             The firewall script.
  rc.firewall.8.gz        The rc.firewall man page.

UPGRADING

Copy the installed rc.firewall and it's configuration file to a safe 
location (just in case) and follow the SETUP instructions. You can leave
the old configuration file in place, it will be upgraded automatically.

SETUP

Copy the rc.firewall script to /etc/rc.d/rc.firewall. You'll probably 
want to setup some init scripts, call it from rc.local, or let your 
dhcpcd client execute it (prefered). A sample S11firewall script has 
been included for Red Hat users. If you wish, you can copy it to 
/etc/rc.d/init.d/firewall and create symlinks to it in your startup 
directories.

  Example:

  cp S11firewall /etc/rc.d/init.d/firewall
  for dir in /etc/rc.d/rc[2-5].d; do ln -s ../init.d/firewall \
      $dir/S11firewall; done

  for dir in /etc/rc.d/rc[016].d; do ln -s ../init.d/firewall \
      $dir/K90firewall; done

Extract the firewall-modules.tar file to /etc.

  Example:

  tar -xvp -C /etc -f firewall-modules.tar

Copy the rc.firewall.8.gz file to /usr/man/man8, firewall-modules.5.gz
and firewall.conf.5.gz to /usr/man/man5. The man application will unzip
them when necessary.

To create the initial configuration file, execute rc.firewall. Edit the 
resulting /etc/filewall.conf to your liking and re-run rc.firewall.

A few command line arguments are available. Execute "./rc.firewall 
--help" (or "man rc.firewall") to view the summary.

Note: On several occasions you might wonder what traffic is being 
blocked -- to debug something, spot hacker activity, etc. I recommend 
you save syslog messages generated by ipchains to a seperate log file.
Add something like this to your /etc/syslog.conf file "kern.=info 
/var/log/firewall/ipchains.log".

FAQ

The rc.firewall FAQ is available at <http://www.jsmoriss.dyndns.org/
linux/firewall/FAQ>.

MAILING LIST

If you need help, would like to know when new versions are released, 
or contribute to the general evolution of this script, subscribe to 
our mailing lists:

  http://www.jsm-mv.dyndns.org/mailman/listinfo/linux-firewall-users
  http://www.jsm-mv.dyndns.org/mailman/listinfo/linux-firewall-dev
  http://www.jsm-mv.dyndns.org/mailman/listinfo/linux-firewall-announce

MODULES

rc.firewall comes with an extensive list of modules which support the 
most common services. If the service you need isn't listed in the 
configuration file, visit <http://www.jsmoriss.dyndns.org/linux/
firewall/contrib/> for additional user-contributed modules. You simply
need to copy the new module in the same (relative) sub-directory and
execute rc.firewall with the "--update-config" parameter. The new module
options will be added to the configuration file.

If you'd like to try your hand at creating a new module, take a look
at the tcp-clients-template file under /etc/firewall-modules/public/
services/.

