Skip to content

webapp: improve pcap download#10

Open
yunzheng wants to merge 2 commits intoFCSC-FR:devfrom
yunzheng:dev
Open

webapp: improve pcap download#10
yunzheng wants to merge 2 commits intoFCSC-FR:devfrom
yunzheng:dev

Conversation

@yunzheng
Copy link
Copy Markdown
Contributor

Downloading a PCAP will now limit packets to the flow only.

Before it would just return the LZ4 compressed PCAP file that contains the flow.

@erdnaxe
Copy link
Copy Markdown
Collaborator

erdnaxe commented Nov 29, 2025

Hi! Thank you for this patch.

I definitely agree that it is a cool feature that should be present in Shovel.
However, I need more time to think about the proposed implementation:

  • LZ4 format seems harder to use for Windows users, so I agree that we should rather serve pcap files.
  • I am not a big fan of calling lz4cat then tcpdump in subprocesses.
  • I was planning to look into Suricata to produce pcap.gz files directly, things are already moving a bit upstream: https://redmine.openinfosecfoundation.org/issues/8132 (libarchive might come to suricata)
  • If we have pcap.gz files, then scapy + gzip modules could be sufficient. This would prevent using subprocess.

In the mean time, I will definitely keep the PR opened to let people cherrypick these commits if they want the feature now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants