-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Netflow module v7.6 doesn’t support 4-7 byte pad in IPFIX template sets #18098
Comments
botelastic
bot
added
the
needs_team
Indicates that the issue/PR needs a Team:* label
label
Apr 29, 2020
Pinging @elastic/siem (Team:SIEM) |
botelastic
bot
removed
the
needs_team
Indicates that the issue/PR needs a Team:* label
label
May 2, 2020
3 tasks
marc-gr
added a commit
to marc-gr/beats
that referenced
this issue
Jun 12, 2020
marc-gr
added a commit
that referenced
this issue
Jun 15, 2020
3 tasks
marc-gr
added a commit
to marc-gr/beats
that referenced
this issue
Jun 15, 2020
Fixes elastic#18098 (cherry picked from commit fb94175)
3 tasks
marc-gr
added a commit
to marc-gr/beats
that referenced
this issue
Jun 15, 2020
Fixes elastic#18098 (cherry picked from commit fb94175)
3 tasks
marc-gr
added a commit
to marc-gr/beats
that referenced
this issue
Jun 15, 2020
Generate golden file for 7.7 Fixes elastic#18098 (cherry picked from commit fb94175)
marc-gr
added a commit
that referenced
this issue
Jun 15, 2020
marc-gr
added a commit
that referenced
this issue
Jun 15, 2020
marc-gr
added a commit
that referenced
this issue
Jun 15, 2020
melchiormoulin
pushed a commit
to melchiormoulin/beats
that referenced
this issue
Oct 14, 2020
leweafan
pushed a commit
to leweafan/beats
that referenced
this issue
Apr 28, 2023
…lastic#19189) Generate golden file for 7.7 Fixes elastic#18098 (cherry picked from commit 6b28f97)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Filebeat Netflow module ver 7.6 doesn't support 4-7 byte pad in template sets when parsing IPFIX. I have Ixia Vision E10S packet broker that can export IPFIX and the module is not compatible with the padding E10S uses for template with ID 256 - which is 4 byte long. Looking at the decoder.go code, maximum padding length allowed is 3 bytes:
While RFC 7011, Section 3.3.1 allows Padding to be shorter than any allowable record in the set. The smallest allowable template record has a Record Header and at least one Field inside. This leads to minimum size of 8 bytes. Hence any bytes following a valid template in a set which are less than 8 should be unequivocally considered as pad.
I have two pcap files, one original which filebeat fails to parse, and another edited with padding removed. The original pcap causes the following error while parsing the template packet:
While edited pcap works just fine
Wireshark seem to have similar problem, as it interprets 4-byte padding as another template with ID=0.
Summary of my environment:
Steps to Reproduce:
Enable netflow module
Configure an available network interface with an IP used in the provided pcaps. This is what I have on my system
Configure netflow module in
/etc/filebeat/modules.d/netflow.yml
with the IP and port used in the provided pcapsConfigure filebeat with console output in
/etc/filebeat/filebeat.yml
Run filebeat in foreground with debug on
Replay original and fixed pcap files using udpreplay (change -i parameter to the NIC with 172.20.100.132):
PCAP files
e10s.netflow.orig.pcap
e10s.netflow.fixed.pcap
Thanks!
Alex
The text was updated successfully, but these errors were encountered: