diff --git a/Shorewall/lib.cli b/Shorewall/lib.cli index 0767c9fbf..4e00a097c 100644 --- a/Shorewall/lib.cli +++ b/Shorewall/lib.cli @@ -710,6 +710,8 @@ show_command() { [ -n "$table_given" ] || for chain in $*; do if ! qt $IPTABLES -t $table -L $chain $IPT_OPTIONS; then + echo "ERROR: Chain '$chain' is not recognized by $IPTABLES." + echo "" echo "usage $(basename $0) show [ -x ] [ -m ] [-f] [ -t {filter|mangle|nat} ] [ {chain [ [ ... ]|actions|capabilities|classifiers|config|connections|dynamic |filters|ip|log|macros|mangle|nat|routing|tc|zones} ] " >&2 exit 1 fi diff --git a/Shorewall6/lib.cli b/Shorewall6/lib.cli index ea2d8032b..94b11e829 100644 --- a/Shorewall6/lib.cli +++ b/Shorewall6/lib.cli @@ -587,6 +587,8 @@ show_command() { if [ $# -gt 0 ]; then [ -n "$table_given" ] || for chain in $*; do if ! qt $IP6TABLES -t $table -L $chain $IPT_OPTIONS; then + echo "ERROR: Chain '$chain' is not recognized by $IP6TABLES." + echo "" echo "usage $(basename $0) show [ -x ] [ -m ] [-f] [ -t {filter|mangle} ] [ {chain [ [ ... ]|actions|capabilities|classifiers|config|connections|filters|ip|log|macros|mangle|routing|tc|zones} ] " >&2 exit 1 fi