Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex Filter #316

Closed
XAMPPRocky opened this issue Jul 5, 2021 · 1 comment
Closed

Regex Filter #316

XAMPPRocky opened this issue Jul 5, 2021 · 1 comment
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.

Comments

@XAMPPRocky
Copy link
Collaborator

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 accept pass and capture, pass where the filter continues on, and capture where it additionally places any capture groups in capture_key.
  • on_error: Right now I think this would have a single value drop where the packet is dropped, but in the future this could have values like ban or event when we have Rules and Actions based on Filter events #63.
@XAMPPRocky XAMPPRocky added 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. labels Jul 5, 2021
@XAMPPRocky
Copy link
Collaborator Author

Closing as complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant