OpnSense basically does this by default.

OpnSense basically does this by default.

Sweet! OpenWRT, which I'm running on my routers (or, are my routers running on it?🤣), also has it. But my layout - having two routers - makes it difficult to view their combined RX/TX volume and speed. I guess I could setup yet another SBC with OpenWRT after the switch that combines my two routers, but I'd rather not add another hop to the traffic.
Instead, what I'm considering now, is to try to mirror the relevant ports on the switch A really nifty capability of this TP switch. I did this once a few years ago when I was learning how to analyze packets with tcpdump and WireShark. I don't see why I couldn't do the same here: hook up some Linux system to the port that mirrors the ports in use and find some program that measures traffic volume and speed using the Linux kernel's capabilities alone. Still looking for such a program. I also want to check whether the basic ip tool can do this.
You could stick a managed switch on the ethermet side. They usually have a way to get traffic stats for a port, and you can usually get that data via SNMP if you want to integrate it into something else.
Rather than adding a switch, just get a router that will show bandwidth on the WAN port. Or see if you can flash your existing router with something like OpenWRT and use the built in monitoring.
The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.
If something works or if you find a solution to your problem let us know it will be greatly apreciated.
Rules: instance rules + stay on topic
Partnered communities: