Project

General

Profile

Actions

Bug #6726

closed

stream: stream.drop-invalid drops valid traffic

Added by Victor Julien 10 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

In AF_PACKET IPS mode, so in bridge mode, traffic for a simple ab test against a simple webserver fails with a timeout.

6.0.x is not affected.


Subtasks 1 (0 open1 closed)

Bug #6727: stream: stream.drop-invalid drops valid traffic (7.0.x backport)ClosedVictor JulienActions

Related issues 1 (1 open0 closed)

Related to Suricata - Feature #6794: Tie signature to live device in IPS modeIn ReviewScott JordanActions
Actions #1

Updated by OISF Ticketbot 10 months ago

  • Subtask #6727 added
Actions #2

Updated by OISF Ticketbot 10 months ago

  • Label deleted (Needs backport to 7.0)
Actions #3

Updated by Victor Julien 10 months ago

Bisected it to:

7e725c650d7d73814c1572ac8db48814b1c89333 is the first bad commit
commit 7e725c650d7d73814c1572ac8db48814b1c89333
Author: Philippe Antoine <contact@catenacyber.fr>
Date:   Thu Apr 28 09:49:38 2022 +0200

    flow: optionally use livedev for hash

    So that in a setup with different interfaces capturing different
    networks, flows do not get mixed up

    Ticket: #5270

Actions #4

Updated by Victor Julien 10 months ago

Confirmed that setting livedev.use-for-tracking to false makes it work again.

Actions #5

Updated by Victor Julien 10 months ago

  • Description updated (diff)
Actions #6

Updated by Victor Julien 9 months ago

  • Assignee changed from Victor Julien to OISF Dev

The work to do here is to add support for livedev tracking in IPS mode, where there will generally be 2 livedevs. One per direction.

Actions #7

Updated by Victor Julien 9 months ago

  • Related to Feature #6794: Tie signature to live device in IPS mode added
Actions #8

Updated by Bill Meeks 9 months ago

Victor Julien wrote in #note-6:

The work to do here is to add support for livedev tracking in IPS mode, where there will generally be 2 livedevs. One per direction.

I don't know exactly how the livedev is obtained in the Suricata code, but when using the host stack interface in netmap mode the connection can "appear" to be using the same physical device for both endpoints. For example, the two netmap interface specs when using a host stack endpoint in FreeBSD are em0 and em0^ . Netmap's code handles interpreting and mapping those endpoints, but those values are not how some direct OS calls will return the endpoints. Those calls may return only the physical layer em0 and omit the "^" suffix that denotes a netmap host stack endpoint.

This may be something to be aware of and take into consideration in netmap mode when using livedev as part of tracking in IPS mode.

Actions #9

Updated by Victor Julien 7 months ago

  • Status changed from New to In Progress
  • Assignee changed from OISF Dev to Victor Julien
Actions #10

Updated by Victor Julien 7 months ago

  • Status changed from In Progress to In Review
Actions #12

Updated by Victor Julien 7 months ago

  • Status changed from In Review to Resolved
Actions #13

Updated by Victor Julien 7 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF