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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
.\" Text automatically generated by txt2man
.TH netproc 8 "05 December 2021" "" "netproc man"
.SH NAME
\fBnetproc \fP- process-based network monitoring tool
.SH SYNOPSIS
.nf
.fam C
\fBnetproc\fP [\fB-B\fP] [\fB-c\fP] [\fB-f\fP [\fIfilename\fP]] [\fB-h\fP] [\fB-i\fP \fIiface\fP] [\fB-n\fP] [\fB-p\fP \fIudp\fP | \fItcp\fP] [\fB-v\fP]
[\fB--si\fP]
.fam T
.fi
.fam T
.fi
.SH DESCRIPTION
\fBnetproc\fP 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.
.PP
\fBnetproc\fP currently supports the TCP and UDP protocols over the IPv4 protocol.
.SH OPTIONS
.TP
.B
\fB-B\fP, \fB--bytes\fP
view in bytes, default in bits
.TP
.B
\fB-c\fP
visualization each active connection of the process
.TP
.B
\fB--color\fP 1|2|3
color scheme, 1 is default
.TP
.B
\fB-f\fP, \fB--file\fP "\fIfilename\fP"
save statistics in file, \fIfilename\fP is optional,
default is 'netproc.log'
.TP
.B
\fB-h\fP, \fB--help\fP
show this message
.TP
.B
\fB-i\fP, \fB--interface\fP \fIiface\fP
specifies an interface, default is all
(except interface with network 127.0.0.0/8)
.TP
.B
\fB-n\fP
numeric host and service, implicit '\fB-c\fP', try '\fB-nh\fP' to no
translate only host or '\fB-np\fP' to not translate only service
.TP
.B
\fB-p\fP, \fB--protocol\fP \fItcp\fP|\fIudp\fP
specifies a protocol, the default is \fItcp\fP and \fIudp\fP
.TP
.B
\fB--si\fP
show SI format, with powers of 1000, default is IEC,
with powers of 1024
.TP
.B
\fB-v\fP, \fB--verbose\fP
verbose mode, also show process without traffic
.TP
.B
\fB-V\fP, \fB--version\fP
show version
.SH RUNNING CONTROL
.TP
.B
arrow keys
scroll
.TP
.B
s
change column-based sort
.TP
.B
q
exit
.SH EXAMPLES
This command will display the ips / ports of the \fIudp\fP traffic of the processes,
monitoring all available interfaces, except the loopback, and log a summary
in the file "log.txt":
.PP
.nf
.fam C
# netproc -p udp -c -f "log.txt"
.fam T
.fi
Useful to monitor the file generated in the above command:
.PP
.nf
.fam C
$ watch -t -d 'cat log.txt'
$ watch -t 'cut -c -$COLUMNS log.txt'
.fam T
.fi
Running whitout root:
.PP
.nf
.fam C
$ sudo setcap "cap_net_admin,cap_net_raw+pe" /usr/local/sbin/netproc
$ export PATH=$PATH:/usr/local/sbin
.fam T
.fi
.SH BUGS
Help improve this software, report bugs at
.PP
https://github.com/berghetti/\fBnetproc\fP/issues
.SH AUTHOR
Mayco Souza Berghetti <mayco.s.berghetti@gmail.com>
.SH COPYRIGHT
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.
|