On 04/20/2013 05:44 PM, Tom Eastep wrote: > On 04/20/2013 05:26 PM, Dash Four wrote: > >>>> Interesting, I think I found another bug: > >>> (eval 22) has too many errors. >>> /etc/shorewall/accounting (line 1) >> The above error is still present in this Beta! > > And I don't know what to do about it. There is an ancient precident in > Shorewall whereby if there is a file on the CONFIG_PATH with the same > name as a chain being created, then that file is considered to be a > compile-time extension script. So when you try to create a chain called > 'firewall', the compiler is attempting to run 'firewall' as a Perl > script. I don't know if anyone has ever taken advantage of that 'feature'... >
This will be in the next release (probably RC 1):
8) Prior to the availability of BEGIN PERL....END PERL in
configuration files, the only way to execute a chain-specific
script was to create a script file with the same name as the chain
and place it in a directory on the CONFIG_PATH. That facility has
the drawback that the compiler will attempt to run a non-script
file just because it has the same name as a chain. To disable this
facility, a new CHAIN_SCRIPTS option has been added to
shorewall[6].conf. The facility is disabled by setting
CHAIN_SCRIPTS=No. If not specified or specified as the empty value,
CHAIN_SCRIPTS=Yes is assumed for backward compatibility.
-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 \________________________________________________
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
