Add 'compile' extension script for 3.2 compatibility

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5362 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-02-04 20:05:12 +00:00
parent dc3a6c4110
commit 650e18f867
3 changed files with 10 additions and 9 deletions

View File

@ -1142,12 +1142,14 @@ compile_refresh_firewall()
#
process_action_file() # $1 = File Name
{
local user_exit=$(find_file $1)
if ! list_search $1 $BUILTIN_ACTIONS; then
local user_exit=$(find_file $1)
if [ -f $user_exit ]; then
progress_message "Processing $user_exit ..."
. $user_exit
if [ -f $user_exit ]; then
progress_message "Processing $user_exit ..."
. $user_exit
fi
fi
}
@ -1362,7 +1364,7 @@ merge_levels() # $1=level at which superior action is called, $2=level at which
#
define_builtin_actions() {
ACTIONS="dropBcast allowBcast dropNotSyn rejNotSyn dropInvalid allowInvalid allowinUPnP allowoutUPnP forwardUPnP Limit"
BUILTIN_ACTIONS="$ACTIONS"
USEDACTIONS=
}

View File

@ -1874,6 +1874,8 @@ do_initialize() {
run_user_exit params
[ "$PROGRAM" = compiler ] && run_user_exit compile
config=$(find_file shorewall.conf)
if [ -f $config ]; then

View File

@ -74,9 +74,6 @@ http://www.shorewall.net/pub/shorewall/3.2/shorewall-3.2.8/releasenotes.txt
/etc/shorewall/params and those required at run-time may be set in
/etc/shorewall/init.
As part of this change, the 'compile' extension script introduced
in Shorewall 3.2.9 has been removed.
2) Shorewall supports the notion of "default actions". A default
action defines a set of rules that are applied before a policy is
enforced. Default actions accomplish two goals: