Here is what I''m proposing for Beta 2 -- only those new features which
are different from Beta 1 are listed.
Comments are welcome.
1) This release expands upon the concept of ''Shorewall
Variables''
that were introduced in 4.5.10 with the creation of ''@0''
in SWITCH
columns. Beginning with 4.5.10, ''@0'' (or
''@{0}'') in a SWITCH column
expands to the name of the current chain.
In this release, the Shorewall variables @loglevel and @logtag
are added. These variables are only available within action bodies.
Their contents are:
@loglevel
The log level specified when the action was invoked. If no
level was specified, @loglevel expands to ''none''.
@logtag
The log tag specified when the action was invoked. If no tag
was specified, @logtag expands to an empty string.
Additionally, @chain has been added as a synonym for @0. Remember
that, unlike $0, non-alphanumeric charaters other than
''_'' have
been removed from @0.
2) Action variables ($0, $1,...$n) and Shorewall variables are now
available in ?IF and ?ELSIF directives.
3) An ''IGNOREUNKNOWNVARIABLES'' option has been added to
/etc/shorewall[6]/shorewall[6].conf. When set to ''Yes'',
this option
instructs the compiler to expand unknown shell variables and
action parameters to an empty string rather than raising an error.
4) ?SET and ?RESET directives are now available:
?SET <variable> <value>
?RESET <variable>
To cater to both Shell and Perl programmers, the <variable> may
be entered with or without leading ''$''.
The ?SET command sets the named <variable> the the specified
<value> where <value> is a Perl-compatible expression.
The ?RESET command deletes the named <variable> from the
compiler''s
variable table.
Shorewall variables (@chain, @loglevel,...) and action parameters
($1, $2,...) are read-only and their values may not be changed.
-Tom
--
Tom Eastep \ When I die, I want to go like my Grandfather who
Shoreline, \ died peacefully in his sleep. Not screaming like
Washington, USA \ all of the passengers in his car
http://shorewall.net \________________________________________________
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d