#################################################################### # # Configuration section # #################################################################### # # How many affairs for burglars & attackers # before they get a DROP in the furewall # 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 # # Set TRACE to a NON_EMPTY_STRING for tracing # 'TRACE=' turns tracing off # TRACE=do # # Set GEOTRACK to a NON_EMPTY_STRING for geo tracking # 'GEOTRACK=' turns geo tracking off # GEOTRACK=do # # Number of days for database expiration # EXPIRATIONDAYS=30 # # Self lock-out prevention # Track for own router # #DYN_CMD=MyFritzBox # #DYN_CMD="dig +short @$DYN_PROVIDER $DYN_ADDRESS" DYN_CMD="cat $LOG_DIR/DYN_IP" #####[ End of custom configuration ]####### ########################################### # Don't change anything below ########################################### MODULE=WatchWB THIS_TYPE=WEB # TABLE=webhogs DB=$TABLE.db SQL="sqlite3 $DB" LOG=$LOG_DIR/$MODULE.log PIPE=$FIFO_BASE/$MODULE # IPset ... MYSET=$MODULE-DB SETTYP="hash:ip" SETOPTS="comment counters"