mirror of
https://gitlab.com/shorewall/code.git
synced 2025-03-13 13:59:07 +01:00
A few more fixes
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8963 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
7377eb1993
commit
c2ac63b900
@ -980,7 +980,7 @@ sub compiler {
|
|||||||
#
|
#
|
||||||
# MACLIST Filtration
|
# MACLIST Filtration
|
||||||
#
|
#
|
||||||
setup_mac_lists 1;
|
setup_mac_lists 1 if $family == F_IPV4;
|
||||||
#
|
#
|
||||||
# Process the rules file.
|
# Process the rules file.
|
||||||
#
|
#
|
||||||
@ -997,7 +997,7 @@ sub compiler {
|
|||||||
#
|
#
|
||||||
# MACLIST Filtration again
|
# MACLIST Filtration again
|
||||||
#
|
#
|
||||||
setup_mac_lists 2;
|
setup_mac_lists 2 if $family == F_IPV4;
|
||||||
#
|
#
|
||||||
# Apply Policies
|
# Apply Policies
|
||||||
#
|
#
|
||||||
|
@ -422,9 +422,7 @@ sub initialize( $ ) {
|
|||||||
LOGBURST => undef,
|
LOGBURST => undef,
|
||||||
LOGALLNEW => undef,
|
LOGALLNEW => undef,
|
||||||
BLACKLIST_LOGLEVEL => undef,
|
BLACKLIST_LOGLEVEL => undef,
|
||||||
MACLIST_LOG_LEVEL => undef,
|
|
||||||
TCP_FLAGS_LOG_LEVEL => undef,
|
TCP_FLAGS_LOG_LEVEL => undef,
|
||||||
SMURF_LOG_LEVEL => undef,
|
|
||||||
LOG_VERBOSITY => undef,
|
LOG_VERBOSITY => undef,
|
||||||
STARTUP_LOG => undef,
|
STARTUP_LOG => undef,
|
||||||
#
|
#
|
||||||
@ -460,7 +458,6 @@ sub initialize( $ ) {
|
|||||||
#
|
#
|
||||||
# Firewall Options
|
# Firewall Options
|
||||||
#
|
#
|
||||||
IP_FORWARDING => undef,
|
|
||||||
TC_ENABLED => undef,
|
TC_ENABLED => undef,
|
||||||
TC_EXPERT => undef,
|
TC_EXPERT => undef,
|
||||||
CLEAR_TC => undef,
|
CLEAR_TC => undef,
|
||||||
@ -470,15 +467,12 @@ sub initialize( $ ) {
|
|||||||
ADMINISABSENTMINDED => undef,
|
ADMINISABSENTMINDED => undef,
|
||||||
BLACKLISTNEWONLY => undef,
|
BLACKLISTNEWONLY => undef,
|
||||||
MODULE_SUFFIX => undef,
|
MODULE_SUFFIX => undef,
|
||||||
MACLIST_TABLE => undef,
|
|
||||||
MACLIST_TTL => undef,
|
|
||||||
MAPOLDACTIONS => '',
|
MAPOLDACTIONS => '',
|
||||||
FASTACCEPT => undef,
|
FASTACCEPT => undef,
|
||||||
IMPLICIT_CONTINUE => undef,
|
IMPLICIT_CONTINUE => undef,
|
||||||
HIGH_ROUTE_MARKS => undef,
|
HIGH_ROUTE_MARKS => undef,
|
||||||
OPTIMIZE => undef,
|
OPTIMIZE => undef,
|
||||||
EXPORTPARAMS => undef,
|
EXPORTPARAMS => undef,
|
||||||
SHOREWALL_COMPILER => undef,
|
|
||||||
EXPAND_POLICIES => undef,
|
EXPAND_POLICIES => undef,
|
||||||
KEEP_RT_TABLES => undef,
|
KEEP_RT_TABLES => undef,
|
||||||
DELETE_THEN_ADD => undef,
|
DELETE_THEN_ADD => undef,
|
||||||
@ -486,12 +480,10 @@ sub initialize( $ ) {
|
|||||||
DONT_LOAD => '',
|
DONT_LOAD => '',
|
||||||
AUTO_COMMENT => undef,
|
AUTO_COMMENT => undef,
|
||||||
MANGLE_ENABLED => undef ,
|
MANGLE_ENABLED => undef ,
|
||||||
NULL_ROUTE_RFC1918 => undef ,
|
|
||||||
USE_DEFAULT_RT => undef ,
|
USE_DEFAULT_RT => undef ,
|
||||||
#
|
#
|
||||||
# Packet Disposition
|
# Packet Disposition
|
||||||
#
|
#
|
||||||
MACLIST_DISPOSITION => undef,
|
|
||||||
TCP_FLAGS_DISPOSITION => undef,
|
TCP_FLAGS_DISPOSITION => undef,
|
||||||
BLACKLIST_DISPOSITION => undef,
|
BLACKLIST_DISPOSITION => undef,
|
||||||
);
|
);
|
||||||
|
@ -1592,13 +1592,14 @@ case "$COMMAND" in
|
|||||||
start_command $@
|
start_command $@
|
||||||
;;
|
;;
|
||||||
stop|clear)
|
stop|clear)
|
||||||
if [ "x$2" = x-f ]; then
|
|
||||||
[ -x ${VARDIR}/.restore ] && FIREWALL=${VARDIR}/.restore
|
|
||||||
shift;
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ $# -ne 1 ] && usage 1
|
[ $# -ne 1 ] && usage 1
|
||||||
get_config
|
get_config
|
||||||
|
if [ -x ${VARDIR}/.restore ]; then
|
||||||
|
FIREWALL=${VARDIR}/.restore
|
||||||
|
else
|
||||||
|
fatal_error "Shorewall6 has never been started"
|
||||||
|
fi
|
||||||
|
|
||||||
export NOROUTES
|
export NOROUTES
|
||||||
mutex_on
|
mutex_on
|
||||||
$SHOREWALL_SHELL $FIREWALL $debugging $nolock $COMMAND
|
$SHOREWALL_SHELL $FIREWALL $debugging $nolock $COMMAND
|
||||||
|
Loading…
Reference in New Issue
Block a user