Project

General

Profile

Actions

Bug #2934

open
MZ OD

VLAN tags stripped when saving pcap log

Bug #2934: VLAN tags stripped when saving pcap log

Added by Martins Zabarovskis about 7 years ago. Updated 9 months ago.

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

Description

Hi,

As this is my first report, sorry if the report is not perfect.

Playing with SELKS I find out that the PCAPs saved from Suricata and picked up by Moloch is missing the VLAN information. I checked Moloch PCAPs from /data/moloch/raw, Suricata PCAPs from /data/nsm and traffic record from my mirror interface using tcpdump. Tcpdump PCAP has VLAN information, Moloch and Suricata PCAPs don`t.

With the same config file, if I feed the PCAP file to Suricata ( suricata -k none -r vlan_test.pcap --runmode single ), the VLAN information is preserved in PCAP file saved by Suricata.

Attached is my Suricata build info. Hope it helps.

regards,
Martins


Files

Suricata-BuildInfo.txt (3.87 KB) Suricata-BuildInfo.txt Suricata Build Info Martins Zabarovskis, 04/16/2019 05:30 PM

Related issues 2 (1 open1 closed)

Related to Suricata - Bug #1780: VLAN tags not forwarded in afpacket inline modeClosedEric LeblondActions
Related to Suricata - Bug #2478: PCAP logging does not include 802.1q header when using af-packetFeedbackOISF DevActions

PM Updated by Peter Manev about 7 years ago Actions #1

It seems if a pcap is read - it preserves the vlan info. If AFPv3 is used then when Suricata is writing the pcap ( https://github.com/OISF/suricata/blob/master/suricata.yaml.in#L363 ) it does not preserve it.

VJ Updated by Victor Julien about 7 years ago Actions #2

  • Related to Bug #1780: VLAN tags not forwarded in afpacket inline mode added

VJ Updated by Victor Julien about 7 years ago Actions #3

This issue is likely the same as #1780. The vlan header is not part of the raw packet and is thus not written into the pcap. In the IPS mode the solution was to re-add it to the forwarded packet manually. I think we will need the same here.

AH Updated by Andreas Herz almost 7 years ago Actions #4

  • Assignee set to OISF Dev
  • Target version set to TBD

AH Updated by Andreas Herz over 6 years ago Actions #5

  • Related to Bug #2478: PCAP logging does not include 802.1q header when using af-packet added

PA Updated by Philippe Antoine 9 months ago Actions #6

  • Affected Versions 8.0.0 added
  • Affected Versions deleted (5.0beta1)
Actions

Also available in: PDF Atom