From 15aa1dae62582805222461972a90ada9627e5f06 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 2 May 2012 13:48:18 -0700 Subject: [PATCH] Enhancements to the 'refresh' command. Signed-off-by: Tom Eastep --- Shorewall/lib.cli-std | 23 ++++++++++++++++++++++- Shorewall/manpages/shorewall.xml | 18 +++++++++++++++++- Shorewall6/manpages/shorewall6.xml | 18 +++++++++++++++++- 3 files changed, 56 insertions(+), 3 deletions(-) diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std index 2c34ac3df..586010871 100644 --- a/Shorewall/lib.cli-std +++ b/Shorewall/lib.cli-std @@ -972,6 +972,27 @@ refresh_command() { finished=1 option= ;; + d*) + g_debug=Yes + option=${option#d} + ;; + n*) + g_noroutes=Yes + option=${option#n} + ;; + T*) + g_confess=Yes + option=${option#T} + ;; + D) + if [ $# -gt 1 ]; then + g_shorewalldir="$2" + option= + shift + else + fatal_error "ERROR: the -D option requires a directory name" + fi + ;; *) usage 1 ;; @@ -1579,7 +1600,7 @@ usage() # $1 = exit status echo " noiptrace " fi - echo " refresh [ ... ]" + echo " refresh [ -d ] [ -n ] [ -T ] [ -D ] [ ... ]" echo " reject
..." echo " reload [ -s ] [ -c ] [ -r ] [ -T ] [ ] " echo " reset [ ... ]" diff --git a/Shorewall/manpages/shorewall.xml b/Shorewall/manpages/shorewall.xml index 078f55724..4d8b3e0b5 100644 --- a/Shorewall/manpages/shorewall.xml +++ b/Shorewall/manpages/shorewall.xml @@ -351,7 +351,9 @@ -options - - + directory chain @@ -1125,6 +1127,20 @@ list or until an entry in the list names another table. Built-in chains such as FORWARD may not be refreshed. + The option was added in Shorewall 4.5.3 + causes Shorewall to avoid updating the routing table(s). + + The option was added in Shorewall 4.5.3 + causes the compiler to run under the Perl debugger. + + 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.5.3 + and causes Shorewall to look in the given + directory first for configuration files. + Example:shorewall refresh net2fw nat:net_dnat #Refresh the 'net2loc' chain in the filter table and the 'net_dnat' chain in the nat table The refresh command has diff --git a/Shorewall6/manpages/shorewall6.xml b/Shorewall6/manpages/shorewall6.xml index 2723c70bf..0d24c0b2f 100644 --- a/Shorewall6/manpages/shorewall6.xml +++ b/Shorewall6/manpages/shorewall6.xml @@ -290,7 +290,9 @@ -options - - + directory chain @@ -997,6 +999,20 @@ list or until an entry in the list names another table. Built-in chains such as FORWARD may not be refreshed. + The option was added in Shorewall 4.5.3 + causes Shorewall to avoid updating the routing table(s). + + The option was added in Shorewall 4.5.3 + causes the compiler to run under the Perl debugger. + + 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.5.3 + and causes Shorewall to look in the given + directory first for configuration files. + Example:shorewall6 refresh net2fw nat:net_dnat #Refresh the 'net2loc' chain in the filter table and the 'net_dnat' chain in the nat table