Conditionally create accounting chain

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@697 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-08-10 16:22:19 +00:00
parent 347ed2f629
commit 24ed025834

View File

@ -1857,7 +1857,6 @@ process_accounting_rule() {
if iptables -A accounting $rule ; then if iptables -A accounting $rule ; then
[ "x$rule2" != x ] && run_iptables -A accounting $rule2 [ "x$rule2" != x ] && run_iptables -A accounting $rule2
echo " Accounting rule" $action $source $dest $proto $port $sport Added echo " Accounting rule" $action $source $dest $proto $port $sport Added
fi
else else
accounting_error accounting_error
fi fi