SkillAgentSearch skills...

Netinfo

Groups network usage by process

Install / Use

/learn @kaegi/Netinfo
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Netinfo

Netinfo is a Rust library and command line application that groups network usage by process. It works in a nethogs-like way, so you don't need a special kernel module.

In comparison to nethogs, it also supports UDP connections.

Because it heavily uses the /proc-filesystem, only Linux is supported at the moment.

Documentation

Crates.io

C Wrapper

How to use the library

Add this to your Cargo.toml:

[dependencies]
netinfo = 0.5.1

How to compile the binary

Install Rust and Cargo, then call:

# This will create the binary `~/.cargo/bin/netinfo`
$ cargo install netinfo

Running binaries

To avoid Permission denied errors, you will either have to run the progam as root or allow the program to capture the network traffic:

sudo setcap cap_net_raw,cap_net_admin=eip /path/to/your/bin
View on GitHub
GitHub Stars23
CategoryDevelopment
Updated1y ago
Forks9

Languages

Rust

Security Score

75/100

Audited on Mar 8, 2025

No findings