Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

filtergen(8) [debian man page]

FILTERGEN(8)						      System Manager's Manual						      FILTERGEN(8)

NAME
filtergen - packet filter compiler SYNOPSIS
filtergen [ -h | --help ] [ -V | --version ] [ -c | --compile ] [ -t target | --target=target ] [ -o outfile | --output=outfile ] infile filtergen [ -h | --help ] [ -V | --version ] [ -c | --compile ] [ -t target | --target=target ] [ -o outfile | --output=outfile ] [ -F pol- icy | --flush=policy ] DESCRIPTION
filtergen compiles a high-level filtering description language into a variety of target formats. USAGE
filtergen reads the ruleset from the infile specified on the command line (or standard input if infile is "-") and outputs to standard out- put (or outfile) via an optionally specified backend. Both short and GNU-style long option options are accepted: -c, --compile Only try to "compile" the input, and do not generate any output. This may be useful to check that an input file has no syntax errors in it before one attempts to use the result on a live server. -t target-filter, --target=target-filter If specified, target-filter will be used to select an output filter type, otherwise the default of iptables will be used. Supported backends are iptables, ipchains, ipfilter and cisco (for Cisco IOS access-lists). -F policy, --flush=policy Flush mode. Generate a set of rules for clearing all rules from the packet filter. Useful for firewall scripts that need to `shut- down' the firewall. You can supply a policy argument in place of the usual filename, to specify whether the flushed filter should default to accept, reject, or drop. It defaults to accept, equivalent to having no filter loaded at all. It is not necessary to specify an infile when using flush mode. -o outfile, --output=outfile Write output to outfile instead of standard output. -h, --help Show command help. -V, --version Show program version. BUGS
Not all backends implement all features. The packet filter is not optimised. SEE ALSO
fgadm(8), filter_syntax(5), filter_backends(7) AUTHOR
filtergen was originally written by Matthew Kirkwood. Jamie Wilkinson <jaq@spacepants.org> then rewrote a lot of the internals, added some features, and took on maintenance of the project. January 7, 2004 FILTERGEN(8)

Check Out this Related Man Page

vselect(1Vi)															      vselect(1Vi)

NAME
vselect - select objects from a Vista data file SYNOPSIS
vselect [-option ...] [infile] [outfile] DESCRIPTION
vselect copies selected objects from an input file to an output file. Command line options specify which objects are to be copied. Objects may be selected by type (e.g., all images), by name, by the value of some attribute, or by position within the input file. COMMAND LINE OPTIONS
vselect accepts the following options: -help Prints a message describing options. -in Specifies a Vista data file from which objects are to be selected. -out Specifies where to write the selected objects as a Vista data file. The input and output files can be specified on the command line or allowed to default to the standard input and output streams. In addition, exactly one of the following options must be used to specify the objects to be selected: -object i Select the ith object. Objects in the input file are numbered consecutively from 0. -name name Select any object whose attribute name is name. -type type Select any object whose type is type. -attr name value Select any object having an attribute with the specified name and value. Finally, any of these selection criteria can be inverted: -not Reverses the sense of the selection criterion. EXAMPLES
To select the first object from a file: vselect -object 0 < infile > outfile To select the attribute named ``cantaloupe'' from a file: vselect -name cantaloupe < infile > outfile To select everything but images from a file: vselect -type image -not < infile > outfile To select images with ubyte pixels from a file of images: vselect -attr nbands ubyte < infile > outfile AUTHOR
Art Pope <pope@cs.ubc.ca> Vista Version 1.12 24 April 1993 vselect(1Vi)
Man Page