More fiddling with generate/compile stuff

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3260 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-01-08 15:59:36 +00:00
parent 3a9f54fdf1
commit c38163a3dc
2 changed files with 13 additions and 1 deletions

View File

@ -4038,7 +4038,15 @@ process_accounting_rule() {
if do_iptables -A $chain $(fix_bang $rule) ; then
[ -n "$rule2" ] && run_iptables2 -A $jumpchain $rule2
progress_message " Accounting rule" $action $chain $source $dest $proto $port $sport $user Added
case $COMMAND in
generate)
progress_message " Accounting rule" $action $chain $source $dest $proto $port $sport $user Compiled
save_progress_message_short " Accounting rule $action $chain $source $dest $proto $port $sport $user Added"
;;
*)
progress_message " Accounting rule" $action $chain $source $dest $proto $port $sport $user Added
;;
esac
else
accounting_error
fi

View File

@ -57,6 +57,10 @@ New Features:
which may then be executed (either directly or using the 'shorewall restore'
command) to configure the firewall.
'compile' is a synonym for 'generate':
shorewall [ -q ] compile [ <config directory> ] <script file>
WARNING: The generated script HAS ABSOLUTELY NO ERROR CHECKING so if there
are errors in your configuration files that result in errors when
the script is run then you may not be able to access your firewall