Feature #8459
openfirewall: support bypass option with firewall rules
Description
Also test what happens to firewall rules with bypass in a TD rule.
JF Updated by Juliana Fajardini Reichow 3 months ago
- Status changed from New to Assigned
- Assignee set to Juliana Fajardini Reichow
- Target version changed from TBD to 9.0.0-beta1
JF Updated by Juliana Fajardini Reichow 3 months ago
- Related to Task #8551: firewall: ban usage of "replace" keyword added
JF Updated by Juliana Fajardini Reichow 3 months ago
For now, we think it's safer to ban the usage of bypass keyword in firewall mode.
JF Updated by Juliana Fajardini Reichow 29 days ago
Probably something like: accept:flow,bypass, for firewall rules, only.
The ban would still persist for the keyword for threat detection/ ids rules, in firewall mode, though.
JF Updated by Juliana Fajardini Reichow 23 days ago
- Status changed from Assigned to In Progress
JF Updated by Juliana Fajardini Reichow 15 days ago
A PR in draft, for review: https://github.com/OISF/suricata/pull/15955
JF Updated by Juliana Fajardini Reichow 15 days ago
In summary, what we have discussed is that the bypass keyword probably shouldn't be valid with most combinations of action and scope, as well as in threat detection rules, in firewall mode.
There are some corner cases to still be tested and ensure we're applying the bypass at the correct time. Automated review indicates that in the case of a single packet flow with a Threat detection drop, we may not get the expected behavior, if we that packet also triggers a `bypass` firewall rule, due to when the engine(s) processes and applies the firewall rules and local bypass action.
JF Updated by Juliana Fajardini Reichow 11 days ago
- Related to Feature #8781: firewall: allow bypass as a default policy added
JF Updated by Juliana Fajardini Reichow 11 days ago
Add to current work:
- if bypass is local, pre-flow rules will still be processed and invoked.
- SV test for the above
Follow-ups:
- Special hook pre-flow:
- ban bypass + SV test(s)
- Special hook pre-stream:
- allow bypass + SV test
JF Updated by Juliana Fajardini Reichow 11 days ago
TBD whether we would want to allow drop:flow + bypass at some point, but we might.