-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
At the moment we block IPs with ip_block for forever. Having that we might false positive, we may hurt legit users.
Add timeout option as
ip_block [SECONDS];
with 0, meaning unlimited, by default.
TBD: do we still need parameters on and off? Can we off the option if if isn't in the config?
Extend TfwFRule with a timestamp for the blocking time. Extend tfw_filter_check_ip() that it removes timed out rules and return T_OK also if a rule was found, but already expired.