mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-01 23:45:53 +02:00
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:
parent
dc3a6c4110
commit
650e18f867
@ -1142,12 +1142,14 @@ compile_refresh_firewall()
|
|||||||
#
|
#
|
||||||
process_action_file() # $1 = File Name
|
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
|
if [ -f $user_exit ]; then
|
||||||
progress_message "Processing $user_exit ..."
|
progress_message "Processing $user_exit ..."
|
||||||
|
|
||||||
. $user_exit
|
. $user_exit
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1362,7 +1364,7 @@ merge_levels() # $1=level at which superior action is called, $2=level at which
|
|||||||
#
|
#
|
||||||
define_builtin_actions() {
|
define_builtin_actions() {
|
||||||
ACTIONS="dropBcast allowBcast dropNotSyn rejNotSyn dropInvalid allowInvalid allowinUPnP allowoutUPnP forwardUPnP Limit"
|
ACTIONS="dropBcast allowBcast dropNotSyn rejNotSyn dropInvalid allowInvalid allowinUPnP allowoutUPnP forwardUPnP Limit"
|
||||||
|
BUILTIN_ACTIONS="$ACTIONS"
|
||||||
USEDACTIONS=
|
USEDACTIONS=
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1874,6 +1874,8 @@ do_initialize() {
|
|||||||
|
|
||||||
run_user_exit params
|
run_user_exit params
|
||||||
|
|
||||||
|
[ "$PROGRAM" = compiler ] && run_user_exit compile
|
||||||
|
|
||||||
config=$(find_file shorewall.conf)
|
config=$(find_file shorewall.conf)
|
||||||
|
|
||||||
if [ -f $config ]; then
|
if [ -f $config ]; then
|
||||||
|
@ -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/params and those required at run-time may be set in
|
||||||
/etc/shorewall/init.
|
/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
|
2) Shorewall supports the notion of "default actions". A default
|
||||||
action defines a set of rules that are applied before a policy is
|
action defines a set of rules that are applied before a policy is
|
||||||
enforced. Default actions accomplish two goals:
|
enforced. Default actions accomplish two goals:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user