r/linuxadmin • u/alalfymansour • Sep 03 '26
Unfair Usage Policy made me do it!
Since we buy internet in Egypt like tomatoes by the kilo, I needed a tool on Linux to see where my bandwidth was actually going.
I looked around but couldn’t find a Linux tool that did exactly what I needed, so I built ViNet!
ViNet uses eBPF to monitor TCP/UDP traffic at the kernel level.
With it, you can:
See which process is responsible for the traffic
See which destination each process is communicating with
Store traffic history locally in a SQLite database
Monitor bandwidth usage through a TUI/CLI
The project is built with Go + eBPF + SQLite + Bubble Tea, and can run as a CLI, TUI, or a background daemon responsible for monitoring the traffic.
Install: curl -fsSL https://github.com/alalfymansour/vinet/raw/refs/heads/main/install.sh | bash
5
u/Explosive_Cornflake Sep 03 '26
looks interesting, I might actually give this a go.
I have a 24/7 box in the attic, and some long term stats would be interesting
2
u/neorekcah Sep 03 '26
nethogs - I've been using this for a decade now.
4
u/sliddis Sep 03 '26
How can wget only have 2KB upload while it has 890MiB download? You are likely missing TCP reply, ack, etc. Something is not adding up.
1
u/j0holo Sep 03 '26
Cool. but this is for a single device (desktop/laptop) and not for every device in the household?
Most routers these days can see the amount of traffic per device. Or you can use OpenWRT which probably has that option too.
1
u/Kazer67 Sep 03 '26
Egypt would be a good case for Wifi-Halow / LoRa etc mesh network at the scale of city.
6
u/[deleted] Sep 03 '26
[removed] — view removed comment