1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
# Netproc
tool to monitor network traffic based on processes

#### [Dependences]
[Debian based]
$ sudo apt install gcc make libncurses-dev
[Red Hat Based]
$ sudo yum install gcc make ncurses-devel
#### [Install]
$ git clone https://github.com/berghetti/netproc.git
$ cd netproc
$ make
$ sudo make install
##### [Install single command]
$ git clone https://github.com/berghetti/netproc.git; cd netproc; make; sudo make install
#### [Options / usage]
Usage: netproc [options]
Options:
-B, --bytes view in bytes, default in bits
-c visualization each active connection of the process
-f, --file "filename" save statistics in file, file name is optional,
default is 'netproc.log'
-h, --help show this message
-i, --interface iface specifies an interface, default is all
(except interface with network 127.0.0.0/8)
-n numeric host and service, implicit '-c', try '-nh' to no
translate only host or '-np' to not translate only service
-p, --protocol tcp|udp specifies a protocol, the default is tcp and udp
-v, --verbose verbose mode, alse show process without traffic
--si show SI format, with powers of 1000, default is IEC,
with powers of 1024
-V, --version show version
when running press:
arrow keys scroll
s change column-based sort
q exit
#### [Running without root]
$ sudo setcap "cap_net_admin,cap_net_raw+pe" /usr/local/sbin/netproc
#### [uninstall]
$ sudo make uninstall
#### [Debug]
$ make clean
$ DEBUG=1 make
$ sudo ./bin/netproc 2> log.txt
$ sudo DESTDIR=/tmp make install
|