From 57d0550311762723d1e56437928938a21ae59308 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 17 Dec 2011 07:40:43 -0800 Subject: [PATCH] Document use of .conf options as variables. Signed-off-by: Tom Eastep --- docs/configuration_file_basics.xml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/configuration_file_basics.xml b/docs/configuration_file_basics.xml index 5c2dbba9b..444f8b983 100644 --- a/docs/configuration_file_basics.xml +++ b/docs/configuration_file_basics.xml @@ -1326,6 +1326,20 @@ SHELL cat /etc/shorewall/rules.d/*.rules 2> /dev/null || trueFor optional interfaces, if the interface is not usable at the time that the firewall starts the all-zero address will be used (0.0.0.0 in IPv4 and :: in IPv6), resulting in no packets matching the rule. + + Beginning with Shorewall 4.4.27, you may also use options in shorewall.conf (5) (e.g., + $BLACKLIST_LOGLEVEL). + + + When an option is set to 'No' in shorewall.conf, the corresponding + shell variable is will be empty. + + + + Options that were not set in shorewall.conf will expand to their + default value. +
@@ -1370,7 +1384,7 @@ ACCEPT dmz fw tcp 22 following: package Shorewall::User; -use Shorewall::Config qw/shorewall/; +use Shorewall::Config ( qw/shorewall/ ); To produce output that will be processed by the compiler as if it were embedded in the file at the point of the script, pass that output to