On Thu, Jun 17, 2021 at 3:01 PM Ibsen S Ripsbusker <ibs...@ripsbusker.no.eu.org> wrote: > I want to know how much network traffic a Windows computer is > responsible for. The Windows computer is connected to a switch, > the switch is connected to a router running OpenBSD, and the router is > connected eventually to the internet service provider. > > Windows ---------- Switch ---- OpenBSD ---- ISP > Other computers --/ > > How can I find out how many bytes this Windows computer sent or received > through the router within some time period? > > I'm concerned only about communication with the internet, not > communication between Windows and "other computers", so it suffices > to count all bytes passing through the OpenBSD computer that originate > from or are destined for the Windows computer.
If you didn't set up something ahead of time to capture this, you likely can't. Ideally you'd want to export IPFIX/NetFlow data from your switch or router and report on this data.