Skip to content

Timeouts for ip_block #2573

@krizhanovsky

Description

@krizhanovsky

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions