Hi,

I want to tweak some settings with sysctl when Shorewall inits. Following
the doc at http://shorewall.net/shorewall_extension_scripts.htm I tried the
following without success :

/etc/shorewall/lib.private

setFWParams()
{
  ... some stuff...
}

/etc/shorewall/initdone

setFWParams

And then :

Shell# shorewall check
Checking using Shorewall 4.6.13.1...
Processing /etc/shorewall/params ...
Processing /etc/shorewall/shorewall.conf...
Loading Modules...
Checking /etc/shorewall/zones...
Checking /etc/shorewall/interfaces...
Determining Hosts in Zones...
Locating Action Files...
Checking /etc/shorewall/policy...
Running /etc/shorewall/initdone...
   ERROR: Couldn't parse /etc/shorewall/initdone: Bareword "setFWParams"
not allowed while "strict subs" in use at /etc/shorewall/initdone line 4.

Strange... According to http://shorewall.net/MultiISP.html#lsm the
"lib.private" should already be loaded.

Further tests seem to indicate that "initdone" must be in Perl like
"compile" but the doc does not specify this so I'm not sure. Trying
something like "my $foo = 'bar';" in "initdone" does not complain so I'm
inclined to think that "initdone" must be in Perl.

-- 
ObNox
------------------------------------------------------------------------------
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to