Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mason(1) [debian man page]

MASON(1)																  MASON(1)

NAME
mason - interactively create a firewall SYNOPSIS
mason < logfile > rulefile DESCRIPTION
This manual page briefly documents the mason command. mason interactively generates a set of firewall rules for a Linux-based firewall. This is done by turning on full IP logging, watching the logs for connections, and generating rules describing the connections seen. mason is familiar with most of the quirks of various connec- tion types (such as ftp and IRC), and can output rules for 2.0.x ipfwadm, 2.2.x ipchains, and Cisco packet filters. mason operates by reading in log file information from standard input and writing firewall rules to standard output. This allows mason to work offline or on a separate system. Real-time firewall generation can be achieved with a command like tail(1). Most users will want to run mason with a user-friendly interface such as mason-gui-text(1). ENVIRONMENT
mason is configured using the following environment variables. ECHOCOMMAND Sets the type of firewall rules that mason should output to standard out. Allowed values include "ipfwadm" and "ipchains". By default, mason outputs whatever kind of rules are supported by the currently running Linux kernel. DOCOMMAND Sets the type of firewall rules that mason should run immediately when a rule is generated. Allowed values include "ipfwadm" and "ipchains". By default, mason outputs whatever kind of rules are supported by the currently running Linux kernel. HEARTBEAT If set to "yes", mason will output a "+" or "-" to standard error whenever a rule generated by mason has been triggered. DYNIP Set this to the list of interfaces that have dynamically assigned addresses, separated by spaces. SEE ALSO
mason-gui-text(1) AUTHOR
This manual page was written by Jeff Licquia <jeff@luci.org>, for the Debian GNU/Linux system (but may be used by others). MASON(1)

Check Out this Related Man Page

MicroMason::PostProcess(3pm)				User Contributed Perl Documentation			      MicroMason::PostProcess(3pm)

NAME
Text::MicroMason::PostProcess - Apply Filters to All Template Output SYNOPSIS
Instead of using this class directly, pass its name to be mixed in: use Text::MicroMason; my $mason = Text::MicroMason->new( -PostProcess ); Use the standard compile and execute methods to parse and evalute templates: print $mason->compile( text=>$template )->( @%args ); print $mason->execute( text=>$template, @args ); You can define output filters at creation or subsequently: $mason = Text::MicroMason->new( -PostProcess, post_process => $func ); $mason->post_processors( $func ); $mason->compile( text => $template, post_process => $func ); $mason->execute( text => $template, { post_process => $func }, @args ); DESCRIPTION
This mixin class adds filtering of all template output to any MicroMason class. Filter functions can accept the string to be output and return a filtered version: $mason->post_process( sub { my $foo = shift; $foo =~ s/a-Z/A-Z/; return $foo; } ); If a filter function has an empty prototype, it's assumed to work on $_: $mason->post_process( sub () { s/a-Z/A-Z/ } ); Public Methods post_processors() Gets and sets the functions to be used for output filtering. Called with no arguments, returns the list of filter functions: my @functions = $mason->post_processors(); Called with one array-ref argument, sets the list of filter functions: $mason->post_processors( @functions ); Called with one or more function-ref arguments, appends to the list: $mason->post_processors( $filter1, $filter2 ); Supported Attributes post_process Stores a reference to a function or an array of functions to be used: $mason->{post_process} = $function; $mason->{post_process} = [ $function1, $function2 ]; You can set this attribute when you create your mason object, or in calls to the compile and execute methods. Private Methods post_process() $mason->post_process( $output ) : $filtered_output Applies the post-processing filter. SEE ALSO
For an overview of this templating framework, see Text::MicroMason. This is a mixin class intended for use with Text::MicroMason::Base. For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe. perl v5.10.1 2007-01-29 MicroMason::PostProcess(3pm)
Man Page