r/eBPF • u/DougHaber • 15h ago
Made a simple eBPF connection monitoring tool
I made a new tool for watching network connections via eBPF. It supports monitoring DNS queries and SNI as well, to try to correlate IPs with hostnames.
At first I was using tcpconnect-bpfcc, but I wanted it to behave a little differently. I had been looking for an opportunity to do something with eBPF, so creating a new tool seemed like a good idea.
The tool can monitor a pid, launch a new command and monitor it and it's descendants, or monitor everything. It's pretty light-weight. It has colors, for those who like such things.
I wouldn't be surprised if there was a better tool out there for this, but I wanted some very specific output styles and this is working for me. Sharing in case it is helpful to anyone else. It is BSD licensed.
