mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-13 21:27:00 +02:00
Fix IPv4 'reset'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
766771d812
commit
35c08c109e
@ -235,8 +235,8 @@ case "$COMMAND" in
|
|||||||
status=2
|
status=2
|
||||||
elif checkkernelversion; then
|
elif checkkernelversion; then
|
||||||
if [ $# -eq 1 ]; then
|
if [ $# -eq 1 ]; then
|
||||||
$IP6TABLES -Z
|
$g_tool -Z
|
||||||
$IP6TABLES -t mangle -Z
|
$g_tool -t mangle -Z
|
||||||
date > ${VARDIR}/restarted
|
date > ${VARDIR}/restarted
|
||||||
status=0
|
status=0
|
||||||
progress_message3 "$g_product Counters Reset"
|
progress_message3 "$g_product Counters Reset"
|
||||||
@ -245,7 +245,7 @@ case "$COMMAND" in
|
|||||||
status=0
|
status=0
|
||||||
for chain in $@; do
|
for chain in $@; do
|
||||||
if chain_exists $chain; then
|
if chain_exists $chain; then
|
||||||
if qt $IP6TABLES -Z $chain; then
|
if qt $g_tool-Z $chain; then
|
||||||
progress_message3 "Filter $chain Counters Reset"
|
progress_message3 "Filter $chain Counters Reset"
|
||||||
else
|
else
|
||||||
error_message "ERROR: Reset of chain $chain failed"
|
error_message "ERROR: Reset of chain $chain failed"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user