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 3 commits December 24, 2025 17:32
…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).
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