iftop
Use the power and speed of iftop to get flow rates and totals of traffic incident on a network device.
Note that the user running this process will need capture permissions on the specified device.
Examples of how this is typically done:
linux:
sudo setcap cap_net_raw,cap_net_admin=eip /usr/sbin/iftop
macOS:
sudo chmod +r /dev/bpf*
Usage
var IftopParser = ; IftopParseriftopPath = "/usr/sbin/iftop"; // only if iftop is not on the path var iftop = "eth0"; # set up error handleriftop; # set up data handleriftop; iftopstart; # optional manipulations after has been iftop;iftop;iftop;iftop;
License
ISC