IPF(1)

NAME
ipf - alters packet filtering lists for IP packet input and ouput

SYNOPSIS
ipf [-AEDIsnovdrzZ] [-l <block|pass|nomatch>] [-F <i|o|a>] -f <filename> [ -f <filename> [...]]

DESCRIPTION

ipf opens the filenames listed (treating "-" as stdin) and parses the file for a set of rules which are to be added or removed from the packet filter rule set.

Each rule processed by ipf is added to the kernels internal lists if there are no parsing problems. Rules are added to the end of the internal lists, matching the order in which they appear when given to ipf.

OPTIONS

-A  set the list to make changes to the active list (default).

-E  Enable the filter (if disabled). Not effective for loadable kernel versions.

-D  Disable the filter (if enabled). Not effective for loadable kernel versions.

-F  this option specifies which filter list to flush. The parameter should either be "i" (input), "o" (output) or "a" (remove all filter rules). Either a single letter or an entire word starting with the appropriate letter maybe used. This option maybe before, or after, any other with the order on the command line being that used to execute options.

-d  turn debug mode on. Causes a hexdump of filter rules to be generated as it processes each one.

-f  this option specifies which files ipf should use to get input from for modifying the pack filter rule lists.

-I  set the list to make changes to the inactive list.

-l  Use of the -l flag toggles default logging of packets. Valid arguments to this option are pass, block and nomatch. When an option is set, any packet which exits filtering and matches the set category is logged. This is most useful for causing all packets which don't match any of the loaded rules to be logged.

-n  This flag (no-change) prevents ipf from actually making any ioctl calls or doing anything which would alter the currently running kernel.

-o  Force rules by default to be added/deleted to/from the output list, rather than the (default) input list.

-s  swap the active filter list in use to be the "other" one.

-r  remove matching filter rules rather than add them to the internal lists

-v  turn verbose mode on. Displays information relating to rule processing.

-z  for each rule in the input file, reset the statistics for it to zero and display the statistics prior to them being zero'd.

-Z  zero global statistics held in the kernel for filtering only (this doesn't affect fragment or state statistics).

SEE ALSO
ipfstat(1), ipftest(1), ipf(5)

DIAGNOSTICS

Needs to be run as root for the packet filtering lists to actually be affected inside the kernel.

BUGS

If you find any, please send email to me at darrenr@cyber.com.au