Skip to content

T75: ipt-netflow enable sampler, mac and vlan - #1022

Merged
c-po merged 2 commits into
vyos:currentfrom
hedrok:T75-ipt-netflow-add-sampler
Sep 1, 2025
Merged

T75: ipt-netflow enable sampler, mac and vlan#1022
c-po merged 2 commits into
vyos:currentfrom
hedrok:T75-ipt-netflow-add-sampler

Conversation

@hedrok

@hedrok hedrok commented Aug 31, 2025

Copy link
Copy Markdown
Contributor

Enable sampler, MAC address and VLAN recording.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

Enable sampler, MAC address and VLAN recording.

For this to work two patches are needed:

* 0001-Fix-prandom_u32-_max-get_random_u32-_below: fix
interface updates for random numbers, took fix from
aabc/ipt-netflow@0c5759d

* 0002-Fix-lu-llu-where-64bit: Fix lu -> llu for 64-bit fields
@github-actions

github-actions Bot commented Aug 31, 2025

Copy link
Copy Markdown

👍
No issues in PR Title / Commit Title

@github-actions github-actions Bot added the current VyOS rolling release label Aug 31, 2025

@sever-sever sever-sever left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add patches to build ipt_netflow to allow MAC-addresses and VLANs

* add --enable-direction as requested
* Fix output of `cat /proc/net/stat/ipt_netflow_flows`:
  previously if no VLAN, there was no output and table
  columns were shifted when parsed.

@c-po c-po left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enable additional ipt_NETFLOW settings

@c-po
c-po merged commit de056d3 into vyos:current Sep 1, 2025
8 checks passed
@vyosbot vyosbot added mirror-initiated This PR initiated for mirror sync workflow mirror-completed and removed mirror-initiated This PR initiated for mirror sync workflow labels Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

current VyOS rolling release mirror-completed

Development

Successfully merging this pull request may close these issues.

5 participants