freebsd kernel with SKQ
Go to file
luigi e3c4c6c9da One bugfix and one new feature.
The bugfix (ipfw2.c) makes the handling of port numbers with
a dash in the name, e.g. ftp-data, consistent with old ipfw:
use \\ before the - to consider it as part of the name and not
a range separator.

The new feature (all this description will go in the manpage):

each rule now belongs to one of 32 different sets, which can
be optionally specified in the following form:

	ipfw add 100 set 23 allow ip from any to any

If "set N" is not specified, the rule belongs to set 0.

Individual sets can be disabled, enabled, and deleted with the commands:

	ipfw disable set N
	ipfw enable set N
	ipfw delete set N

Enabling/disabling of a set is atomic. Rules belonging to a disabled
set are skipped during packet matching, and they are not listed
unless you use the '-S' flag in the show/list commands.
Note that dynamic rules, once created, are always active until
they expire or their parent rule is deleted.
Set 31 is reserved for the default rule and cannot be disabled.

All sets are enabled by default. The enable/disable status of the sets
can be shown with the command

	ipfw show sets

Hopefully, this feature will make life easier to those who want to
have atomic ruleset addition/deletion/tests. Examples:

To add a set of rules atomically:

	ipfw disable set 18
	ipfw add ... set 18 ...		# repeat as needed
	ipfw enable set 18

To delete a set of rules atomically

	ipfw disable set 18
	ipfw delete set 18
	ipfw enable set 18

To test a ruleset and disable it and regain control if something
goes wrong:

	ipfw disable set 18
	ipfw add ... set 18 ...         # repeat as needed
	ipfw enable set 18 ; echo "done "; sleep 30 && ipfw disable set 18

    here if everything goes well, you press control-C before
    the "sleep" terminates, and your ruleset will be left
    active. Otherwise, e.g. if you cannot access your box,
    the ruleset will be disabled after the sleep terminates.

I think there is only one more thing that one might want, namely
a command to assign all rules in set X to set Y, so one can
test a ruleset using the above mechanisms, and once it is
considered acceptable, make it part of an existing ruleset.
2002-08-10 04:37:32 +00:00
bin IPv6 support for rcp. 2002-08-09 16:12:08 +00:00
contrib Use the correct loop variable so that we print all IO addresses and 2002-08-09 22:04:54 +00:00
crypto Resolve conflicts. 2002-08-10 01:50:50 +00:00
etc Permit the creation of just cd0 if desired. Previously it always 2002-08-10 00:20:32 +00:00
games Remove some Dijkstra quotes from fortunes that are duplicated in fortunes2. 2002-08-09 20:37:01 +00:00
gnu Added Russian translation of the .Ex -std macro. 2002-08-07 17:47:24 +00:00
include Implement POSIX.1-2001 (XSI)'s ulimit(3). 2002-08-08 04:50:36 +00:00
kerberos5 Kerberos 5 no longer needs -lmd 2002-08-04 22:23:48 +00:00
kerberosIV Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
lib Update with new error return code. 2002-08-09 13:22:21 +00:00
libexec Rework storing files thoroughly. This includes: 2002-08-08 17:53:52 +00:00
release Add ia64 to platforms supported by em(4). 2002-08-10 03:39:05 +00:00
sbin One bugfix and one new feature. 2002-08-10 04:37:32 +00:00
secure Update list of installed manual pages after regenerating them. 2002-07-30 14:47:24 +00:00
share Make ppp(4) devices clonable and unloadable. 2002-08-09 15:30:48 +00:00
sys One bugfix and one new feature. 2002-08-10 04:37:32 +00:00
tools As of revision 1.38 of make/parse.c, our make(1) will warn too. Note that 2002-07-28 03:57:08 +00:00
usr.bin The boottime variable in sys/kern/kern_tc.c is a struct timeval, not a 2002-08-09 15:47:43 +00:00
usr.sbin Teach sysinstall that documents on the boot floppy might not be gzipped. 2002-08-09 07:44:43 +00:00
COPYRIGHT
MAINTAINERS Added groff(1) and natd(8) entries. 2002-07-18 12:12:15 +00:00
Makefile Indentation. 2002-07-20 10:01:00 +00:00
Makefile.inc1 The intent in rev. 1.299 was to make the CPUTYPE assignment type check 2002-08-08 15:43:23 +00:00
Makefile.upgrade
README Fix broken handbook links. 2002-07-21 16:45:30 +00:00
UPDATING Ignore -C, -p, and -S options of install(1) when used with the -d 2002-07-29 08:51:04 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

kerberosIV	KerberosIV (eBones) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html