netproc(8) | netproc man | netproc(8) |
netproc - process-based network monitoring tool
netproc [-B] [-c] [-f [filename]] [-h] [-i iface] [-n] [-p udp | tcp] [-v]
[--si]
netproc monitors network traffic and tries to find out which process this traffic belongs to, this is useful to quickly know who is consuming our network resources.
netproc currently supports the TCP and UDP protocols over the IPv4 protocol.
This command will display the ips / ports of the udp traffic of the processes, monitoring all available interfaces, except the loopback, and log a summary in the file "log.txt":
Useful to monitor the file generated in the above command:
# netproc -p udp -c -f "log.txt"
Running whitout root:
$ watch -t -d 'cat log.txt'
$ watch -t 'cut -c -$COLUMNS log.txt'
$ sudo setcap "cap_net_admin,cap_net_raw+pe" /usr/local/sbin/netproc
$ export PATH=$PATH:/usr/local/sbin
Help improve this software, report bugs at
https://github.com/berghetti/netproc/issues
Mayco Souza Berghetti <mayco.s.berghetti@gmail.com>
Copyright © 2020-2021 Mayco S. Berghetti. Licensed GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
05 December 2021 |