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

Port Mirror Question #107

Open
jmilleriec opened this issue Sep 5, 2021 · 2 comments
Open

Port Mirror Question #107

jmilleriec opened this issue Sep 5, 2021 · 2 comments

Comments

@jmilleriec
Copy link

jmilleriec commented Sep 5, 2021

So I've got a port mirror on my switch connected an ubuntu machine that is running the GoFlow docker container, its unclear to me how I might be able to have the packets coming in on that interface sent to the GoFlow collector. I'd love to be able to use GoFlow to monitor our networks with either a mirror or a tap.

Apologies if this isn't the appropriate place for this question.

I know the port mirror interface is working, TCPDump was seeing the appropriate packets coming through.

Any thoughts would be greatly appreciated.

Thanks,
Jim

@lspgn
Copy link
Contributor

lspgn commented Sep 5, 2021

Hi Jim,
Unfortunately GoFlow does not capture raw packets. It only captures sFlow and NetFlow/IPFIX protocols, the former contains raw packet headers.
You could eventually have something that pcap and convert to the protobuf but this is out of the scope of GoFlow (additionally, you may not be able to process a high volume of pps if GoFlow is not load-balanced).
My suggestion would be for the switch to send samples using sFlow to a collector (or in the future in the GoFlow2 repository: IPFIX line monitoring).
Or use something like hsflowd/nProbe on the machines that generate traffic and send it to GoFlow.

I would also advise using GoFlow2 which is more updated now.

@jmilleriec
Copy link
Author

Really helpful, thank you so much, i've installed pmacct and I'm working on pushing that into goflow. I'll check into golfow2, i have been using nprode/ntopng, but was looking for an alternative and something that i could have more direct access to the data. Thanks again for your help...

tgragnato pushed a commit to tgragnato/goflow that referenced this issue Aug 14, 2024
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