Coder Social home page Coder Social logo

netproc's Introduction

Netproc

tool to monitor network traffic based on processes

Alt Text

[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

netproc's People

Contributors

berghetti avatar theridane avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.