mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 03:10:39 +01:00
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:
parent
347ed2f629
commit
24ed025834
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user