Skip to content

Conversation

@AdSchellevis
Copy link
Member

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.

…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.
@AdSchellevis AdSchellevis self-assigned this Dec 23, 2025
public function run($model)
{
$cnf = Config::getInstance()->object();
if ($cnf?->OPNsense?->IDS?->general?->ips == '1') {
Copy link
Member

Choose a reason for hiding this comment

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

no cast here?

Copy link
Member Author

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.

AdSchellevis and others added 4 commits December 24, 2025 17:32
…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)
@AdSchellevis AdSchellevis marked this pull request as ready for review January 3, 2026 13:36
@AdSchellevis AdSchellevis merged commit d86052e into master Jan 6, 2026
@fichtner
Copy link
Member

fichtner commented Jan 6, 2026

🥳

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.

3 participants