Regex Filter #316
Labels
area/filters
Related to Quilkin's filter API.
good first issue
Good for newcomers
help wanted
Extra attention is needed
priority/low
Issues that don't need to be addressed in the near term.
Pretty straightforward addition. A filter that uses
regex::bytes::Regex
to filter or capture bytes.Config Options
regex
: The actual regular expression.capture_key
: The key to store any capture groups that matched to in metadata.on_success
: What happens when the regular expression succeeds. My current thinking is this would acceptpass
andcapture
, pass where the filter continues on, and capture where it additionally places any capture groups incapture_key
.on_error
: Right now I think this would have a single valuedrop
where the packet is dropped, but in the future this could have values likeban
orevent
when we have Rules and Actions based on Filter events #63.The text was updated successfully, but these errors were encountered: