On 1/20/2014 6:35 AM, Vieri Di Paola wrote: > Hi, > > Is it possible to put a conditional statement in /etc/shorewall/params? > > Such as an "?IF/?ENDIF" block? (tried it but got "command not found" > error when running shorewall) > So I guess the "params" file isn't a config file (thus it can't use ?IF). >
Both 'params' and 'shorewall.conf' are processed by the shell and
therefore cannot contain ?IF/?ENDIF blocks. Also note that 'params' is
processed before 'shorewall.conf', so settings from that file are not
available unless your params file sources shorewall.conf.
'params' may, of course, use any of the shell's conditionals ('if ....;
then...fi', etc).
-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
------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
