|
@@ -150,6 +150,9 @@ do_exec () {
|
|
|
|
|
|
|
|
|
|
|
|
|
do_check () {
|
|
do_check () {
|
|
|
|
|
+ if [ ${verbose} -ge 1 ] ; then
|
|
|
|
|
+ echo "do_check params='$*'"
|
|
|
|
|
+ fi
|
|
|
local it_action=`get_action_information $*`
|
|
local it_action=`get_action_information $*`
|
|
|
local it_table=`get_table_information $*`
|
|
local it_table=`get_table_information $*`
|
|
|
local it_command=`get_command_information $*`
|
|
local it_command=`get_command_information $*`
|
|
@@ -170,11 +173,14 @@ do_check () {
|
|
|
esac
|
|
esac
|
|
|
default_option=-C
|
|
default_option=-C
|
|
|
if [ ${verbose} -ge 1 ] ; then
|
|
if [ ${verbose} -ge 1 ] ; then
|
|
|
|
|
+ echo "it_action=$it_action"
|
|
|
|
|
+ echo "it_table=$it_table"
|
|
|
|
|
+ echo "it_command=$it_command"
|
|
|
echo $do_log "$it_action:" $IP_TABLES $it_table -C $it_command
|
|
echo $do_log "$it_action:" $IP_TABLES $it_table -C $it_command
|
|
|
echo $IP_TABLES $it_table -C $it_command
|
|
echo $IP_TABLES $it_table -C $it_command
|
|
|
fi
|
|
fi
|
|
|
- $do_log "$it_action:" $IP_TABLES -C $it_command
|
|
|
|
|
- $IP_TABLES $it_table -C $it_command
|
|
|
|
|
|
|
+ $do_log "$it_action:" $IP_TABLES $it_table -C $it_command
|
|
|
|
|
+ $IP_TABLES $it_table -C $it_command
|
|
|
global_status=$((global_status+$?))
|
|
global_status=$((global_status+$?))
|
|
|
}
|
|
}
|
|
|
|
|
|