diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index d9acc0d3c..f8f875c5e 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -1440,7 +1440,7 @@ show_command() { elif [ -n "$g_basedir" -a -d "$g_basedir" ]; then cat $g_basedir/shorewallrc else - fatal_error "Can not determine the location of the shorewall program." + fatal_error "Can not determine the location of the shorewallrc file." fi ;; policies) @@ -4333,11 +4333,11 @@ usage() # $1 = exit status fi if [ -z "$g_lite" ]; then - echo " remote-getrc [ -T ] [ -p ] [ -r ] [ ] [ ]" - echo " remote-getcaps [ -T ] [ -R ] [ -p ] [ -r ] [ ] [ ]" - echo " remote-reload [ -n ] [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] " - echo " remote-restart [ -n ] [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] " - echo " remote-start [ -n ] [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] " + echo " remote-getrc [ -T ] [ -c ] [ -r ] [ [ -D ] ] [ ]" + echo " remote-getcaps [ -T ] [ -R ] [ -r ] [ [ -D ] ] [ ]" + echo " remote-reload [ -n ] [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] [ ]" + echo " remote-restart [ -n ] [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] [ ]" + echo " remote-start [ -n ] [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] [ ]" fi echo " reset [ ... ]" @@ -4380,11 +4380,11 @@ usage() # $1 = exit status echo " [ show | list | ls ] nfacct" echo " [ show | list | ls ] opens" echo " [ show | list | ls ] policies" + echo " [ show | list | ls ] rc" echo " [ show | list | ls ] routing" echo " [ show | list | ls ] saves" echo " [ show | list | ls ] tc [ device ]" echo " [ show | list | ls ] vardir" - echo " [ show | list | ls ] rc [ ]" echo " [ show | list | ls ] zones" if [ -n "$g_lite" ]; then diff --git a/Shorewall-core/manpages/shorewall.xml b/Shorewall-core/manpages/shorewall.xml index b1a844a5d..aea207a0d 100644 --- a/Shorewall-core/manpages/shorewall.xml +++ b/Shorewall-core/manpages/shorewall.xml @@ -445,6 +445,54 @@ directory + + shorewall[6] + + | + + options + + + + + + + + root-user-name + + + + + + directory + + system + + + + shorewall[6] + + | + + options + + + + + + + + root-user-name + + + + + + directory + + system + + shorewall[6] @@ -1870,6 +1918,57 @@ + + remote-getcaps + [-] [- + root-user-name] [ [ -D ] + directory ] [ + system ] + + + Added in Shoreall 5.2.0, this command executes shorewall[6]-lite show capabilities -f > + /var/lib/shorewall[6]-lite/capabilities on the remote + system via ssh then the generated file is + copied to directory on the local system. + If no directory is given, the current + working directory is assumed. + + if -R is included, the remote + shorewallrc file is also copied to + directory. + + If is included, it specifies that the root + user on system is named + root-user-name rather than "root". + + + + + remote-getrc + [-] [- + root-user-name] [ [ -D ] + directory ] [ + system ] + + + Added in Shoreall 5.2.0, this command copies the shorewallrc + file from the remote system to + directory on the local system. If no + directory is given, the current working + directory is assumed. + + if -c is included, the remote + capabilities are also copied to + directory, as is done by the + remote-getcaps command. + + If is included, it specifies that the root + user on system is named + root-user-name rather than "root". + + + remote-start [-] [-] [-] @@ -1921,9 +2020,9 @@ role="bold">shorewall-lite save via ssh. if -c is included, the - command shorewall-lite show capabilities -f - > /var/lib/shorewall-lite/capabilities is executed via - ssh then the generated file is copied to + command shorewall[6]-lite show capabilities -f + > /var/lib/shorewall[6]-lite/capabilities is executed + via ssh then the generated file is copied to directory using scp. This step is performed before the configuration is compiled. @@ -1934,13 +2033,6 @@ The option was added in Shorewall 4.5.3 and causes a Perl stack trace to be included with each compiler-generated error and warning message. - - The 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 shorewall.conf(5). @@ -2666,6 +2758,15 @@ + + rc + + + Added in Shorewall 5.2.0. Displays the contents of + $SHAREDIR/shorewall/shorewallrc. + + + [-] routing