Skip to content
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

Allow sending upstream netflow to multiple servers #672

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

i3149
Copy link
Contributor

@i3149 i3149 commented Feb 23, 2024

Now you can use ktranslate like samplicator. Tested with:

Process 1:
ktranslate -nf.source=auto -format netflow -sinks net -net_server 127.0.0.1:9090,127.0.0.1:9091 -max_flows_per_message=1

Process 2:
ktranslate -nf.source auto -nf.port 9090 -listen off 

Process 3:
ktranslate -nf.source auto -nf.port 9091 -listen off 

Process 2 and 3 get the same flows. Use a comma split -net_server to specify multiple destinations.

-max_flows_per_message=1 is needed when sending udp packets because otherwise it is dumb and tries to cram too much into 1 udp packet.

@i3149 i3149 requested a review from briandav22 February 23, 2024 05:42
Copy link
Collaborator

@briandav22 briandav22 left a comment

Choose a reason for hiding this comment

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

Looks Good!

Copy link
Collaborator

@briandav22 briandav22 left a comment

Choose a reason for hiding this comment

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

looks good!

@i3149 i3149 merged commit a8acc55 into main Feb 26, 2024
1 check passed
@i3149 i3149 deleted the allow-multiple-net-servers branch February 26, 2024 20:53
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