-
Notifications
You must be signed in to change notification settings - Fork 894
Services: Intrusion Detection - refactor pcap/netmap selection to "Capture mode" and add new "divert" option. #9561
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
Merged
+172
−15
Conversation
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
…pture mode" and add new "divert" option. With divert we can integrate suricata in firewall rules, which makes it easier to bypass large flows. This change requires the new SO_REUSEPORT_LB option in the kernel in order to distribute traffic over multiple workers.
fichtner
reviewed
Dec 24, 2025
src/opnsense/mvc/app/controllers/OPNsense/IDS/forms/generalSettings.xml
Outdated
Show resolved
Hide resolved
fichtner
reviewed
Dec 24, 2025
src/opnsense/mvc/app/controllers/OPNsense/IDS/forms/generalSettings.xml
Outdated
Show resolved
Hide resolved
fichtner
reviewed
Dec 24, 2025
| public function run($model) | ||
| { | ||
| $cnf = Config::getInstance()->object(); | ||
| if ($cnf?->OPNsense?->IDS?->general?->ips == '1') { |
Member
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no cast here?
Member
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be safe, it's a config (simplexml) object.
…tings.xml Co-authored-by: Franco Fichtner <franco@opnsense.org>
…tings.xml Co-authored-by: Franco Fichtner <franco@opnsense.org>
…l ui. Currently we only support a single divert-to target, but if we would like to integrate in the future with other services, it's practical to be able to offer a list of them, list_divert_sockets.php acts as a stepping stone for this purpose, which now just returns a static list of one (8000 -> idps).
…rt-to on IPv4 (as long as IPv6 doesn't work properly in pf)
Member
|
🥳 |
AdSchellevis
added a commit
that referenced
this pull request
Jan 8, 2026
AdSchellevis
added a commit
that referenced
this pull request
Jan 9, 2026
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.
With divert we can integrate suricata in firewall rules, which makes it easier to bypass large flows. This change requires the new SO_REUSEPORT_LB option in the kernel in order to distribute traffic over multiple workers.