| Crates.io | netinfo |
| lib.rs | netinfo |
| version | 0.5.1 |
| created_at | 2016-11-30 14:45:21.320893+00 |
| updated_at | 2018-09-12 09:31:01.6044+00 |
| description | Groups network usage by process |
| homepage | |
| repository | https://github.com/kaegi/netinfo |
| max_upload_size | |
| id | 7415 |
| size | 57,995 |
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.
Add this to your Cargo.toml:
[dependencies]
netinfo = 0.5.1
Install Rust and Cargo, then call:
# This will create the binary `~/.cargo/bin/netinfo`
$ cargo install netinfo
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