mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 12:09:14 +01:00
Fix 'show dynamic' -- take 2
This commit is contained in:
parent
f4338b52fe
commit
2f01fc9a3e
@ -553,6 +553,7 @@ show_command() {
|
|||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
for chain in $*; do
|
for chain in $*; do
|
||||||
$IPTABLES -t $table -L $chain $IPT_OPTIONS
|
$IPTABLES -t $table -L $chain $IPT_OPTIONS
|
||||||
|
echo
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
$IPTABLES -t $table -L $IPT_OPTIONS
|
$IPTABLES -t $table -L $IPT_OPTIONS
|
||||||
@ -625,7 +626,7 @@ show_command() {
|
|||||||
|
|
||||||
[ -n "$table_given" ] || for chain in $*; do
|
[ -n "$table_given" ] || for chain in $*; do
|
||||||
if ! qt $IPTABLES -t $table -L $chain $IPT_OPTIONS; then
|
if ! qt $IPTABLES -t $table -L $chain $IPT_OPTIONS; then
|
||||||
echo "usage $(basename $0) show [ -x ] [ -m ] [-f] [ -t {filter|mangle|nat} ] [ {chain [<chain> [ <chain> ... ]|actions|capabilities|classifiers|config|connections|filters|ip|log|macros|mangle|nat|routing|tc|zones} ] " >&2
|
echo "usage $(basename $0) show [ -x ] [ -m ] [-f] [ -t {filter|mangle|nat} ] [ {chain [<chain> [ <chain> ... ]|actions|capabilities|classifiers|config|connections|dynamic <zone>|filters|ip|log|macros|mangle|nat|routing|tc|zones} ] " >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -635,6 +636,7 @@ show_command() {
|
|||||||
show_reset
|
show_reset
|
||||||
for chain in $*; do
|
for chain in $*; do
|
||||||
$IPTABLES -t $table -L $chain $IPT_OPTIONS
|
$IPTABLES -t $table -L $chain $IPT_OPTIONS
|
||||||
|
echo
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "$PRODUCT $version $table Table at $HOSTNAME - $(date)"
|
echo "$PRODUCT $version $table Table at $HOSTNAME - $(date)"
|
||||||
|
Loading…
Reference in New Issue
Block a user