"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "share/arno-iptables-firewall/plugins/95adaptive-ban.plugin" between
aif-2.1.0.tar.gz and aif-2.1.1.tar.gz

About: Arno’s iptables firewall is a stateful firewall script for both single and multi-homed machines with DSL/ADSL support.

95adaptive-ban.plugin  (aif-2.1.0):95adaptive-ban.plugin  (aif-2.1.1)
skipping to change at line 147 skipping to change at line 147
} }
# Check sanity of eg. environment # Check sanity of eg. environment
plugin_sanity_check() plugin_sanity_check()
{ {
if [ -z "$ADAPTIVE_BAN_FILE" -o -z "$ADAPTIVE_BAN_TIME" -o -z "$ADAPTIVE_BAN_C OUNT" -o -z "$ADAPTIVE_BAN_TYPES" ]; then if [ -z "$ADAPTIVE_BAN_FILE" -o -z "$ADAPTIVE_BAN_TIME" -o -z "$ADAPTIVE_BAN_C OUNT" -o -z "$ADAPTIVE_BAN_TYPES" ]; then
printf "\033[40m\033[1;31m${INDENT}ERROR: The plugin config file is not prop erly set!\033[0m\n" >&2 printf "\033[40m\033[1;31m${INDENT}ERROR: The plugin config file is not prop erly set!\033[0m\n" >&2
return 1 return 1
fi fi
if [ -z "$JOB_HELPER_SCRIPT" -o ! -e "$JOB_HELPER_SCRIPT" ]; then if [ ! -f "$JOB_HELPER_SCRIPT" ]; then
printf "\033[40m\033[1;31m${INDENT}ERROR: The job helper script($JOB_HELPER_ SCRIPT) can not be found!\033[0m\n" >&2 printf "\033[40m\033[1;31m${INDENT}ERROR: The job helper script($JOB_HELPER_ SCRIPT) can not be found!\033[0m\n" >&2
return 1 return 1
fi fi
if [ "$PLUGIN_CMD" = "start" ] && [ ! -f "$ADAPTIVE_BAN_FILE" ]; then if [ "$PLUGIN_CMD" = "start" ] && [ ! -f "$ADAPTIVE_BAN_FILE" ]; then
printf "\033[40m\033[1;31m${INDENT}ERROR: Input log file $ADAPTIVE_BAN_FILE does not exist!\033[0m\n" >&2 printf "\033[40m\033[1;31m${INDENT}ERROR: Input log file $ADAPTIVE_BAN_FILE does not exist!\033[0m\n" >&2
return 1 return 1
fi fi
if ! check_command sort; then if ! check_command sort; then
skipping to change at line 184 skipping to change at line 184
# Check where to find the config file # Check where to find the config file
CONF_FILE="" CONF_FILE=""
if [ -n "$PLUGIN_CONF_PATH" ]; then if [ -n "$PLUGIN_CONF_PATH" ]; then
CONF_FILE="$PLUGIN_CONF_PATH/$PLUGIN_CONF_FILE" CONF_FILE="$PLUGIN_CONF_PATH/$PLUGIN_CONF_FILE"
fi fi
# Preinit to success: # Preinit to success:
PLUGIN_RET_VAL=0 PLUGIN_RET_VAL=0
# Check if the config file exists # Check if the config file exists
if [ ! -e "$CONF_FILE" ]; then if [ ! -f "$CONF_FILE" ]; then
printf "NOTE: Config file \"$CONF_FILE\" not found!\n Plugin \"$PLUGIN_ NAME v$PLUGIN_VERSION\" ignored!\n" >&2 printf "NOTE: Config file \"$CONF_FILE\" not found!\n Plugin \"$PLUGIN_ NAME v$PLUGIN_VERSION\" ignored!\n" >&2
else else
# Source the plugin config file # Source the plugin config file
. "$CONF_FILE" . "$CONF_FILE"
if [ "$ENABLED" = "1" ] || if [ "$ENABLED" = "1" ] ||
[ -n "$PLUGIN_LOAD_FILE" -a "$PLUGIN_CMD" = "stop" ] || [ -n "$PLUGIN_LOAD_FILE" -a "$PLUGIN_CMD" = "stop" ] ||
[ -n "$PLUGIN_LOAD_FILE" -a "$PLUGIN_CMD" = "status" ]; then [ -n "$PLUGIN_LOAD_FILE" -a "$PLUGIN_CMD" = "status" ]; then
# Show who we are: # Show who we are:
echo "${INDENT}$PLUGIN_NAME v$PLUGIN_VERSION" echo "${INDENT}$PLUGIN_NAME v$PLUGIN_VERSION"
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)