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

The ability to collect flows only between local networks #644

Open
The-Astiks opened this issue Feb 24, 2025 · 2 comments
Open

The ability to collect flows only between local networks #644

The-Astiks opened this issue Feb 24, 2025 · 2 comments

Comments

@The-Astiks
Copy link

We use nProbe in collector mode and collect flows for all interactions with external networks.
But we would also like to be able to filter the NetFlow/sFlow streams received by nProbe so that only flows between our networks are saved, and everything that has an external source or destination address is discarded.

For example, if there are local networks 10.0.0.0/8 and 1.2.3.0/24:

10.0.0.0/8 <-> 10.0.0.0/8 - pass and store
1.2.3.0/24 <-> 1.2.3.0/24 - pass and store
10.0.0.0/8 <-> 1.2.3.0/24 - pass and store
external <-> local - filter out and discard

It would be great if you could implement similar functionality.

@cardigliano
Copy link
Member

Did you check the --collection-filter option?

@The-Astiks
Copy link
Author

The-Astiks commented Feb 24, 2025

Yes, but how can we use it to discard all flows related with external networks?

We have a public network too, so if we permit only our networks in collection-filter (e.g. --collection-filter=a.b.c.d/n, ...), we will store all flows sourced from or destined to networks a.b.c.d/n and so on, isn't it?

Flows from external to our public a.b.c.d/n will pass. Please correct me if I understood something wrong.

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

No branches or pull requests

2 participants