mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 01:37:59 +02:00
Document 'getcaps', 'getrc' and 'show rc'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
47a96e9ff9
commit
16bb41db15
@ -1440,7 +1440,7 @@ show_command() {
|
|||||||
elif [ -n "$g_basedir" -a -d "$g_basedir" ]; then
|
elif [ -n "$g_basedir" -a -d "$g_basedir" ]; then
|
||||||
cat $g_basedir/shorewallrc
|
cat $g_basedir/shorewallrc
|
||||||
else
|
else
|
||||||
fatal_error "Can not determine the location of the shorewall program."
|
fatal_error "Can not determine the location of the shorewallrc file."
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
policies)
|
policies)
|
||||||
@ -4333,11 +4333,11 @@ usage() # $1 = exit status
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$g_lite" ]; then
|
if [ -z "$g_lite" ]; then
|
||||||
echo " remote-getrc [ -T ] [ -p <remote-dir-path-of-sw-program> ] [ -r <root-name> ] [ <directory> ] [ <system> ]"
|
echo " remote-getrc [ -T ] [ -c ] [ -r <root-name> ] [ [ -D ] <directory> ] [ <system> ]"
|
||||||
echo " remote-getcaps [ -T ] [ -R ] [ -p <remote-dir-path-of-sw-program> ] [ -r <root-name> ] [ <directory> ] [ <system> ]"
|
echo " remote-getcaps [ -T ] [ -R ] [ -r <root-name> ] [ [ -D ] <directory> ] [ <system> ]"
|
||||||
echo " remote-reload [ -n ] [ -s ] [ -c ] [ -r <root-name> ] [ -T ] [ -i ] [ <directory> ] <system>"
|
echo " remote-reload [ -n ] [ -s ] [ -c ] [ -r <root-name> ] [ -T ] [ -i ] [ <directory> ] [ <system> ]"
|
||||||
echo " remote-restart [ -n ] [ -s ] [ -c ] [ -r <root-name> ] [ -T ] [ -i ] [ <directory> ] <system>"
|
echo " remote-restart [ -n ] [ -s ] [ -c ] [ -r <root-name> ] [ -T ] [ -i ] [ <directory> ] [ <system> ]"
|
||||||
echo " remote-start [ -n ] [ -s ] [ -c ] [ -r <root-name> ] [ -T ] [ -i ] [ <directory> ] <system>"
|
echo " remote-start [ -n ] [ -s ] [ -c ] [ -r <root-name> ] [ -T ] [ -i ] [ <directory> ] [ <system> ]"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo " reset [ <chain> ... ]"
|
echo " reset [ <chain> ... ]"
|
||||||
@ -4380,11 +4380,11 @@ usage() # $1 = exit status
|
|||||||
echo " [ show | list | ls ] nfacct"
|
echo " [ show | list | ls ] nfacct"
|
||||||
echo " [ show | list | ls ] opens"
|
echo " [ show | list | ls ] opens"
|
||||||
echo " [ show | list | ls ] policies"
|
echo " [ show | list | ls ] policies"
|
||||||
|
echo " [ show | list | ls ] rc"
|
||||||
echo " [ show | list | ls ] routing"
|
echo " [ show | list | ls ] routing"
|
||||||
echo " [ show | list | ls ] saves"
|
echo " [ show | list | ls ] saves"
|
||||||
echo " [ show | list | ls ] tc [ device ]"
|
echo " [ show | list | ls ] tc [ device ]"
|
||||||
echo " [ show | list | ls ] vardir"
|
echo " [ show | list | ls ] vardir"
|
||||||
echo " [ show | list | ls ] rc [ <remote-dir-path-of-sw-program> ]"
|
|
||||||
echo " [ show | list | ls ] zones"
|
echo " [ show | list | ls ] zones"
|
||||||
|
|
||||||
if [ -n "$g_lite" ]; then
|
if [ -n "$g_lite" ]; then
|
||||||
|
@ -445,6 +445,54 @@
|
|||||||
<arg><replaceable>directory</replaceable></arg>
|
<arg><replaceable>directory</replaceable></arg>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
|
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>shorewall[6]</command>
|
||||||
|
|
||||||
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
||||||
|
|
||||||
|
<arg>options</arg>
|
||||||
|
|
||||||
|
<arg choice="plain"><option>remote-getcaps</option></arg>
|
||||||
|
|
||||||
|
<arg><option>-s</option></arg>
|
||||||
|
|
||||||
|
<arg><option>-R</option></arg>
|
||||||
|
|
||||||
|
<arg><option>-r</option> <replaceable>root-user-name</replaceable></arg>
|
||||||
|
|
||||||
|
<arg><option>-T</option></arg>
|
||||||
|
|
||||||
|
<arg><option>-i</option></arg>
|
||||||
|
|
||||||
|
<arg><arg><option>-D</option></arg><replaceable>directory</replaceable></arg>
|
||||||
|
|
||||||
|
<arg choice="plain"><arg><replaceable>system</replaceable></arg></arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>shorewall[6]</command>
|
||||||
|
|
||||||
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
||||||
|
|
||||||
|
<arg>options</arg>
|
||||||
|
|
||||||
|
<arg choice="plain"><option>remote-getrc</option></arg>
|
||||||
|
|
||||||
|
<arg><option>-s</option></arg>
|
||||||
|
|
||||||
|
<arg><option>-c</option></arg>
|
||||||
|
|
||||||
|
<arg><option>-r</option> <replaceable>root-user-name</replaceable></arg>
|
||||||
|
|
||||||
|
<arg><option>-T</option></arg>
|
||||||
|
|
||||||
|
<arg><option>-i</option></arg>
|
||||||
|
|
||||||
|
<arg><arg><option>-D</option></arg><replaceable>directory</replaceable></arg>
|
||||||
|
|
||||||
|
<arg choice="plain"><arg><replaceable>system</replaceable></arg></arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>shorewall[6]</command>
|
<command>shorewall[6]</command>
|
||||||
|
|
||||||
@ -1870,6 +1918,57 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><emphasis role="bold">remote-getcaps</emphasis>
|
||||||
|
[-<option>R</option>] [-<option>r</option>
|
||||||
|
<replaceable>root-user-name</replaceable>] [ [ -D ]
|
||||||
|
<replaceable>directory</replaceable> ] [
|
||||||
|
<replaceable>system</replaceable> ]</term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Added in Shoreall 5.2.0, this command executes <emphasis
|
||||||
|
role="bold">shorewall[6]-lite show capabilities -f >
|
||||||
|
/var/lib/shorewall[6]-lite/capabilities</emphasis> on the remote
|
||||||
|
<replaceable>system</replaceable> via ssh then the generated file is
|
||||||
|
copied to <replaceable>directory</replaceable> on the local system.
|
||||||
|
If no <replaceable>directory</replaceable> is given, the current
|
||||||
|
working directory is assumed.</para>
|
||||||
|
|
||||||
|
<para>if <emphasis role="bold">-R</emphasis> is included, the remote
|
||||||
|
shorewallrc file is also copied to
|
||||||
|
<replaceable>directory</replaceable>.</para>
|
||||||
|
|
||||||
|
<para>If <option>-r</option> is included, it specifies that the root
|
||||||
|
user on <replaceable>system</replaceable> is named
|
||||||
|
<replaceable>root-user-name</replaceable> rather than "root".</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><emphasis role="bold">remote-getrc</emphasis>
|
||||||
|
[-<option>c</option>] [-<option>r</option>
|
||||||
|
<replaceable>root-user-name</replaceable>] [ [ -D ]
|
||||||
|
<replaceable>directory</replaceable> ] [
|
||||||
|
<replaceable>system</replaceable> ]</term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Added in Shoreall 5.2.0, this command copies the shorewallrc
|
||||||
|
file from the remote <replaceable>system</replaceable> to
|
||||||
|
<replaceable>directory</replaceable> on the local system. If no
|
||||||
|
<replaceable>directory</replaceable> is given, the current working
|
||||||
|
directory is assumed.</para>
|
||||||
|
|
||||||
|
<para>if <emphasis role="bold">-c</emphasis> is included, the remote
|
||||||
|
capabilities are also copied to
|
||||||
|
<replaceable>directory</replaceable>, as is done by the
|
||||||
|
<command>remote-getcaps</command> command.</para>
|
||||||
|
|
||||||
|
<para>If <option>-r</option> is included, it specifies that the root
|
||||||
|
user on <replaceable>system</replaceable> is named
|
||||||
|
<replaceable>root-user-name</replaceable> rather than "root".</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">remote-start</emphasis>
|
<term><emphasis role="bold">remote-start</emphasis>
|
||||||
[-<option>n</option>] [-<option>s</option>] [-<option>c</option>]
|
[-<option>n</option>] [-<option>s</option>] [-<option>c</option>]
|
||||||
@ -1921,9 +2020,9 @@
|
|||||||
role="bold">shorewall-lite save</emphasis> via ssh.</para>
|
role="bold">shorewall-lite save</emphasis> via ssh.</para>
|
||||||
|
|
||||||
<para>if <emphasis role="bold">-c</emphasis> is included, the
|
<para>if <emphasis role="bold">-c</emphasis> is included, the
|
||||||
command <emphasis role="bold">shorewall-lite show capabilities -f
|
command <emphasis role="bold">shorewall[6]-lite show capabilities -f
|
||||||
> /var/lib/shorewall-lite/capabilities</emphasis> is executed via
|
> /var/lib/shorewall[6]-lite/capabilities</emphasis> is executed
|
||||||
ssh then the generated file is copied to
|
via ssh then the generated file is copied to
|
||||||
<replaceable>directory</replaceable> using scp. This step is
|
<replaceable>directory</replaceable> using scp. This step is
|
||||||
performed before the configuration is compiled.</para>
|
performed before the configuration is compiled.</para>
|
||||||
|
|
||||||
@ -1934,13 +2033,6 @@
|
|||||||
<para>The <option>-T</option> option was added in Shorewall 4.5.3
|
<para>The <option>-T</option> option was added in Shorewall 4.5.3
|
||||||
and causes a Perl stack trace to be included with each
|
and causes a Perl stack trace to be included with each
|
||||||
compiler-generated error and warning message.</para>
|
compiler-generated error and warning message.</para>
|
||||||
|
|
||||||
<para>The <option>-i</option> option was added in Shorewall 4.6.0
|
|
||||||
and causes a warning message to be issued if the current line
|
|
||||||
contains alternative input specifications following a semicolon
|
|
||||||
(";"). Such lines will be handled incorrectly if INLINE_MATCHES is
|
|
||||||
set to Yes in <ulink
|
|
||||||
url="/manpages/shorewall.conf.html">shorewall.conf</ulink>(5).</para>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
@ -2666,6 +2758,15 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><emphasis role="bold">rc</emphasis></term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Added in Shorewall 5.2.0. Displays the contents of
|
||||||
|
$SHAREDIR/shorewall/shorewallrc.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>[-<option>c</option>]<emphasis role="bold">
|
<term>[-<option>c</option>]<emphasis role="bold">
|
||||||
routing</emphasis></term>
|
routing</emphasis></term>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user