forked from extern/shorewall_code
Clear nat and mangle counters during 'shorewall reset'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@316 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
f80e2d972d
commit
5ff9d1a888
@ -4246,9 +4246,20 @@ case "$command" in
|
|||||||
|
|
||||||
reset)
|
reset)
|
||||||
[ $# -ne 1 ] && usage
|
[ $# -ne 1 ] && usage
|
||||||
iptables -L -n -Z -v
|
do_initialize
|
||||||
|
my_mutex_on
|
||||||
|
if ! qt iptables -L shorewall -n ; then
|
||||||
|
echo "Shorewall Not Started"
|
||||||
|
[ -n "$TMP_DIR" ] && rm -rf $TMP_DIR
|
||||||
|
my_mutex_off
|
||||||
|
exit 2;
|
||||||
|
fi
|
||||||
|
iptables -Z
|
||||||
|
iptables -t nat -Z
|
||||||
|
iptables -t mangle -Z
|
||||||
report "Shorewall Counters Reset"
|
report "Shorewall Counters Reset"
|
||||||
date > $STATEDIR/restarted
|
date > $STATEDIR/restarted
|
||||||
|
my_mutex_off
|
||||||
;;
|
;;
|
||||||
|
|
||||||
refresh)
|
refresh)
|
||||||
|
Loading…
Reference in New Issue
Block a user