Fw backports/v1#15409
Draft
victorjulien wants to merge 15 commits into
Draft
Conversation
Use an enum for the firewall related flow control, to improve readability of the firewall inspection logic. (cherry picked from commit 6d3599e)
(cherry picked from commit 4fd5bbe)
(cherry picked from commit b922142)
(cherry picked from commit 171b147)
(cherry picked from commit d561f61)
When there are no rules after prefilter the default policy needs to be invoked. (cherry picked from commit b695100)
For improved readability. (cherry picked from commit 0093bd6)
Previously a `accept:flow` action would act as both a firewall "accept" and a threat detection "pass" for the rest of the flow. This patch changes that. The `accept:flow` action now only accepts the rest of the packets for the firewall ruleset, but does still continue threat detection rule evaluation. Ticket: OISF#8444. (cherry picked from commit eaacb41)
Allow configurable policies, including accept. For app-layer this requires looping all available hooks to apply the policies. Support configurable policies for packet-filter, pre-stream, pre-flow. If there are no rules there is also no rule group (sgh). Make sure the app hooks policies are correctly handled in this case by allowing a NULL sgh to be handled as well. For tx rule match actually apply drop directly. Previously this was always handled by the default drop:flow policy. Ticket: OISF#7701. (cherry picked from commit 7134592)
(cherry picked from commit f7c44c4)
(cherry picked from commit 367ca7f)
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main-8.0.x #15409 +/- ##
==============================================
- Coverage 81.63% 81.62% -0.01%
==============================================
Files 1012 1012
Lines 275234 275663 +429
==============================================
+ Hits 224686 225009 +323
- Misses 50548 50654 +106
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
ERROR: ERROR: QA failed on SURI_TLPW1_rule_time. Pipeline = 31537 |
Contributor
|
CI/QA look happy enough |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports for firewall related work.
https://redmine.openinfosecfoundation.org/issues/8498
https://redmine.openinfosecfoundation.org/issues/8519
https://redmine.openinfosecfoundation.org/issues/8496
https://redmine.openinfosecfoundation.org/issues/8574
https://redmine.openinfosecfoundation.org/issues/8573
https://redmine.openinfosecfoundation.org/issues/8572
SV_BRANCH=OISF/suricata-verify#3099
Mostly clean cherry-picks. Many issue was debug messages using the new function to get to the
pcap_cnt.Initially as draft to see if CI/QA is happy.