Skip to content

Add IPFIX support, including OpenBSD pflow(4)#162

Open
drkhsh wants to merge 1 commit into
synfinatic:mainfrom
drkhsh:main
Open

Add IPFIX support, including OpenBSD pflow(4)#162
drkhsh wants to merge 1 commit into
synfinatic:mainfrom
drkhsh:main

Conversation

@drkhsh
Copy link
Copy Markdown

@drkhsh drkhsh commented Apr 26, 2026

Closes the gap noted in the README (& closes #60)

In theory, adding sFlow/IPFIX/NetFlow v5 support should be pretty trivial, but isn't something I plan on doing due to lack of hardware for testing/need.

I have hardware (OpenBSD pflow(4) with pflowproto 10)

The change

goflow2's NewNetFlowPipe already dispatches v5/v9/v10 by header version, so IPFIX packets have always reached the producer. The gap was that formatter/mapping.yaml only declared a netflowv9: section, so for v10 packets the custom InBytes/InPackets/OutBytes/OutPackets fields stayed at zero and ntopng saw flows with 0-byte counters.

Fix: add an ipfix: block in mapping.yaml mirroring netflowv9: (IANA IEs 1, 2, 23, 24 are identical between the two protocols). No code changes, no new flags, no new deps.

Tested

  • OpenBSD pflow(4) pflowproto 10 (unidirectional, IEs 1+2) → ntopng shows non-zero in_bytes/in_packets

Adds an `ipfix:` section to mapping.yaml so v10 packets fill the
custom InBytes/InPackets/OutBytes/OutPackets fields, the same way
netflowv9 already did. goflow2's NetFlowPipe already dispatches v10,
so no decoder changes are needed -- the producer just had no remap
for IPFIX field IDs and counters were always zero.

Tested with OpenBSD pflow(4) pflowproto 10 (unidirectional, fields
1+2 only). Bidirectional exporters that also set 23/24 work too.

Drops the README disclaimer about IPFIX not being supported.
@rselph
Copy link
Copy Markdown

rselph commented May 4, 2026

@drkhsh, it looks like we've got parallel PR's going here. Take a look at #150. It handles a couple of time related fields as well, and tweaks the comments and doc a little more extensively. Also adds a Copilot instructions file.

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.

IPFIX support (seems to work fine)

2 participants