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

rule: Don't drop flow if rule matches on packet properties. #9664

Closed
wants to merge 1 commit into from

Conversation

jlucovsky
Copy link
Contributor

Continuation of #9632
This commit modifies the logic used to determine the disposition of a flow/packet.

If the rule contains packet match properties, the flow shouldn't be dropped.

Link to redmine ticket: 5578

Describe changes:

  • When deciding how to handle the drop action, check if the rule applies to packet properties.

Updates:

  • Rebase

Provide values to any of the below to override the defaults.

To use a pull request use a branch name like pr/N where N is the
pull request number.

Alternatively, SV_BRANCH may also be a link to an
OISF/suricata-verify pull-request.

SV_BRANCH=OISF/suricata-verify#1424

This commit modifies the logic used to determine the disposition of a
flow/packet.

If the rule contains packet match properties, the flow shouldn't be
dropped.

Issue: 5578
@suricata-qa
Copy link

Information:

ERROR: QA failed on SURI_TLPR1_alerts_cmp.

field baseline test %
SURI_TLPR1_stats_chk
.uptime 874 949 108.58%

Pipeline 16268

@victorjulien
Copy link
Member

I would like to see more explanation in the commit. It's unclear to me why this check in this location fixes it. Explanation should include a analysis of how we can end up doing the wrong thing.

Copy link
Contributor

@catenacyber catenacyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Victor requested changes ;-)

@catenacyber
Copy link
Contributor

@jlucovsky closing this one PR (to have something clear for master6), waiting for the next version

@victorjulien
Copy link
Member

@jlucovsky closing this one PR (to have something clear for master6), waiting for the next version

I don't understand why it was closed?

@catenacyber
Copy link
Contributor

I don't understand why it was closed?

You requested changes long time ago ?
cf https://github.com/OISF/suricata/blob/master/doc/userguide/devguide/contributing/github-pr-workflow.rst

A PR may be closed as stale if it has not been updated in two months after changes were requested.

@victorjulien
Copy link
Member

@jlucovsky can you bring this effort back?

@jlucovsky
Copy link
Contributor Author

@jlucovsky can you bring this effort back?

For 6.0.x? Yes

@jlucovsky
Copy link
Contributor Author

Continued in #10946

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants