forked from extern/shorewall_code
Add the -l option
- Update shorewall(8) Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
36517cdb1e
commit
de553e7b18
@ -4474,6 +4474,14 @@ shorewall_cli() {
|
|||||||
fi
|
fi
|
||||||
option=${option#4}
|
option=${option#4}
|
||||||
;;
|
;;
|
||||||
|
l*)
|
||||||
|
if [ "$PRODUCT" = shorewall ]; then
|
||||||
|
PRODUCT=shorewall-lite
|
||||||
|
elif [ "$PRODUCT" = shorewall6 ]; then
|
||||||
|
PRODUCT=shorewall6-lite
|
||||||
|
fi
|
||||||
|
option=${option#l}
|
||||||
|
;;
|
||||||
-)
|
-)
|
||||||
finished=1
|
finished=1
|
||||||
option=
|
option=
|
||||||
|
@ -898,11 +898,54 @@
|
|||||||
include <command>shorewall</command> commands in
|
include <command>shorewall</command> commands in
|
||||||
<filename>/etc/shorewall/started</filename>.</para>
|
<filename>/etc/shorewall/started</filename>.</para>
|
||||||
|
|
||||||
<para>The <emphasis>options</emphasis> control the amount of output that
|
<para>Beginning with Shorewall 5.0.15, the <command>shorewall</command>
|
||||||
the command produces. They consist of a sequence of the letters <emphasis
|
command may also be used to control Shorewall6, Shorewall-lite and
|
||||||
role="bold">v</emphasis> and <emphasis role="bold">q</emphasis>. If the
|
Shorewall6-lite.</para>
|
||||||
options are omitted, the amount of output is determined by the setting of
|
|
||||||
the VERBOSITY parameter in <ulink
|
<orderedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>When the Shorewall package is installed, then
|
||||||
|
<command>shorewall</command> command defaults to that product.</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>When the Shorewall package is not installed but Shorewall-lite
|
||||||
|
is installed, the <command>shorewall</command> command defaults to
|
||||||
|
Shorewall-lite.</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>When neither the Shorewall nor Shorewall-lite package is
|
||||||
|
installed but Shorewall6-lite is installed, the
|
||||||
|
<command>shorewall</command> command defaults to
|
||||||
|
Shorewall6-lite.</para>
|
||||||
|
</listitem>
|
||||||
|
</orderedlist>
|
||||||
|
|
||||||
|
<para>When the Shorewall6 package is installed, the <option>6</option>
|
||||||
|
option is used to cause shorewall commands to operate on the Shorewall6
|
||||||
|
configuration. In other words, "<command>shorewall -6 ...</command>" is
|
||||||
|
equivalent to "<command>shorewall6 ...</command>".</para>
|
||||||
|
|
||||||
|
<para>Similarly, when Shorewall is not installed but both Shorewall-lite
|
||||||
|
and Shorewall6-lite are installed, the <option>6</option> option causes
|
||||||
|
<command>shorewall</command> commands to operate on the Shorewall6-lite
|
||||||
|
configuration.</para>
|
||||||
|
|
||||||
|
<para>Finally, when both the standard product (Shorewall or Shorewall6)
|
||||||
|
and the corresponding -lite product(s) are installed, the
|
||||||
|
<option>l</option> option causes <command>shorewall</command> commands to
|
||||||
|
operate on the -lite configuration rather than the standard configuration.
|
||||||
|
In other words "<command>shorewall -l ...</command>" is equivalent to
|
||||||
|
"<command>shorewall-lite -l ...</command>" and "<command>shorewall -6l
|
||||||
|
...</command>" is equivalent to "<command>shorewall6-lite
|
||||||
|
...</command>".</para>
|
||||||
|
|
||||||
|
<para>The remaining <emphasis>options</emphasis> control the amount of
|
||||||
|
output that the command produces. They consist of a sequence of the
|
||||||
|
letters <emphasis role="bold">v</emphasis> and <emphasis
|
||||||
|
role="bold">q</emphasis>. If the options are omitted, the amount of output
|
||||||
|
is determined by the setting of the VERBOSITY parameter in <ulink
|
||||||
url="/manpages/shorewall.conf.html">shorewall.conf</ulink>(5). Each
|
url="/manpages/shorewall.conf.html">shorewall.conf</ulink>(5). Each
|
||||||
<emphasis role="bold">v</emphasis> adds one to the effective verbosity and
|
<emphasis role="bold">v</emphasis> adds one to the effective verbosity and
|
||||||
each <emphasis role="bold">q</emphasis> subtracts one from the effective
|
each <emphasis role="bold">q</emphasis> subtracts one from the effective
|
||||||
@ -2628,7 +2671,7 @@
|
|||||||
<para>Because the translation of the 'blacklist' and
|
<para>Because the translation of the 'blacklist' and
|
||||||
'routestopped' files is not 1:1, omitted lines and compiler
|
'routestopped' files is not 1:1, omitted lines and compiler
|
||||||
directives are not transferred to the converted files. If
|
directives are not transferred to the converted files. If
|
||||||
either are present, the compiler issues a warning: </para>
|
either are present, the compiler issues a warning:</para>
|
||||||
|
|
||||||
<programlisting> WARNING: "Omitted rules and compiler directives were not translated</programlisting>
|
<programlisting> WARNING: "Omitted rules and compiler directives were not translated</programlisting>
|
||||||
</important>
|
</important>
|
||||||
|
Loading…
Reference in New Issue
Block a user