On Thu, Jul 15, 2004 at 02:39:08PM -0700, Tom Eastep
wrote:> My vote is to replace the log level in the rule with the one specified
> at invocation but I could also be talked into leaving the existing level
> alone.
Why not sit on the fence and have it both ways? Define a shorewall.conf
variable that lets us choose between the two behaviours. Or (my
favourite), have a two syntaxes, e.g. "foo:info" does not over-ride
any existing levels in the action file and "foo:info!" does forcibly
over-ride existing log levels.
There will be action.foo files where it just isn''t appropriate to turn
on the logging for every rule in the file. If you set things up so that
the only rules in action.foo files that get modified are the ones that
do *not* already have a log level, then a useful follow-on feature would
be to define a "do nothing" log level that protects some of the rules
in the action.foo file from having any logging added and keeps logging
disabled, e.g. for this action.foo:
ACCEPT - - tcp 22
ACCEPT:warn - - udp 53
ACCEPT:none - - udp 123
A normal (non-forcing) foo:info rule would only affect the first rule
in the above action.foo file - the the ACCEPT:warn would not be touched
and the ACCEPT:none would not be touched (but the "none" would protect
the entry from modification and mean no logging).
A forcing "foo:info!" rule would affect all three rules, adding
"info"
logging to all three rules in the action.foo file.
With forcing and non-forcing syntaxes, users can decide what they want.
--
-IAN! Ian! D. Allen Ottawa, Ontario, Canada
EMail: idallen@idallen.ca WWW: http://www.idallen.com/
College professor via: http://teaching.idallen.com/
Support free and open public digital rights: http://eff.org/