Syncronize shorewall-lite activities

This commit is contained in:
Tom Eastep 2010-07-22 17:00:34 -07:00
parent 3248fc8ab1
commit 898274dd77
5 changed files with 26 additions and 1 deletions

View File

@ -93,7 +93,7 @@ for PRODUCT in $PRODUCTS; do
VARDIR=/var/lib/$PRODUCT
[ -f /etc/$PRODUCT/vardir ] && . /etc/$PRODUCT/vardir
if [ -x $VARDIR/firewall ]; then
$VARDIR/firewall -V0 $COMMAND $IFACE
/sbin/$PRODUCT -v0 $COMMAND $IFACE
fi
done

View File

@ -631,7 +631,14 @@ case "$COMMAND" in
stop|clear)
[ $# -ne 1 ] && usage 1
verify_firewall_script
[ -n "$nolock" ] || mutex_on
run_it $g_firewall $debugging $nolock $COMMAND
[ -n "$nolock" ] || mutex_off
;;
up|down)
[ -n "$nolock" ] || mutex_on
run_it $g_firewall $debugging $nolock $COMMAND
[ -n "$nolock" ] || mutex_off
;;
reset)
verify_firewall_script

View File

@ -1635,6 +1635,12 @@ case "$COMMAND" in
run_it $g_firewall $g_debugging $nolock $COMMAND
mutex_off
;;
up|down)
[ -x $g_firewall ] || fatal_error "Shorewall has never been started"
mutex_on
run_it $g_firewall $g_debugging $nolock $@
mutex_off
;;
reset)
get_config
shift

View File

@ -615,7 +615,14 @@ case "$COMMAND" in
stop|reset|clear)
[ $# -ne 1 ] && usage 1
verify_firewall_script
[ -n "$nolock" ] || mutex_on
run_it $g_firewall $debugging $nolock $COMMAND
[ -n "$nolock" ] || mutex_off
;;
up|down)
[ -n "$nolock" ] || mutex_on
run_it $g_firewall $debugging $nolock $@
[ -n "$nolock" ] || mutex_off
;;
restart)
shift

View File

@ -1548,6 +1548,11 @@ case "$COMMAND" in
run_it $g_firewall $g_debugging $nolock $COMMAND
mutex_off
;;
up|down)
mutex_on
run_it $g_firewall $g_debugging $nolock $@
mutex_off
;;
reset)
get_config
shift