######################################################## # # Configuration section # ######################################################## # # Set 'TRACE' and/or SQL_TRACE to a _NON_EMPTY_STRING_ # to turn tracing 'on' to WatchXX.trace/WatchXX.sql_trace # in the module directory # TRACE=doit SQL_TRACE=Yeah # Enable geo tracking by setting GEOTRACK to a non-empty string # 'GEOTRACK=' turns geo tracking off GEOTRACK=do # # How many attempts for burglars and attackers? # MAX_AFFAIRS=5 # Time slice for the blocking in the timed ipset 'tarpit' # # This value is internally multiplied with the number of 'affairs' # # The blocking scheme is logarithmic as '2^AFFAIRS'; i.e. # # the factor to TIME_SLICE doubles with every affair resulting # # in 2,4,8,16,32 minutes blocking, if TIME_SLICE is set to 60s # # (1 minute) # # Setting it to 300 (5 minutes) results in # # 10, 20, 40, 80 (1h20m) minutes blocking # # Setting it to 600 (10 minutes) results in # # 20, 40, 80 (1h20m), 160 (2h40m), 320 (5h20m) blocking # # Default: 60 seconds TIME_SLICE=60 # Want compressed 'filter' at runtime ? # Then set COMPRESS_FILTER to a non-empty string # Otherwise set 'COMPRESS_FILTER=' COMPRESS_FILTER=oh_yes # # Self-lockout prevention ... #DYN_CMD=MyFritzBox #DYN_CMD="dig +short @$DYN_PROVIDER $DYN_ADDRESS" DYN_CMD="cat $LOG_DIR/DYN_IP" ######################################################## ######################################### # DON'T CHANGE anything below ... ######################################### MODULE=WatchMB THIS_TYPE=Mailbox # TABLE=mailhogs DB=../WatchMX/$TABLE.db # We share mother's DB! SQL="sqlite3 $DB" LOG=$LOG_DIR/$MODULE.log PIPE=$FIFO_BASE/$MODULE # IPset ... MYSET=$MODULE-DB SETTYP="hash:ip" SETOPTS="comment"