Skip to main content

Monitor network traffic of a group of processes

Project description

Network Monitoring for processes

netmon-proc is a network monitoring CLI tool designed to monitor network traffic and provide detailed metrics for specified processes. It leverages Scapy for packet sniffing and offers multiple formatting options for the output.

Table of Contents

Features

  • Real-time network traffic monitoring for specific processes.
  • Metrics aggregation and reporting.
  • Support for different output formats, including JSON and tabular formats.
  • Threaded implementation for efficient performance.
  • Customizable filtering using BPF (Berkeley Packet Filter) syntax.

Installation

You can install netmon-proc using the provided wheel or source distribution files.

From Source

  1. Clone the repository:

    git clone https://github.com/0xzer0x/netmon-proc.git
    cd netmon-proc
    
  2. Install dependencies:

    poetry install
    
  3. Build the package:

    poetry build
    
  4. Install the package:

    pip install dist/netmon_proc-0.x.x-py3-none-any.whl
    

Usage

Command Line Interface

netmon-proc provides a CLI for starting the network monitoring tool. Below are some usage examples.

netmon-proc --help

Example Command

To start monitoring network traffic for a specific process with a BPF filter and output the results in a table format:

netmon-proc --filter "tcp port 443" --format table --metrics rx_bytes firefox

License

This project is licensed under the GPL v3 License. See the LICENSE file for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netmon_proc-0.2.6.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

netmon_proc-0.2.6-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file netmon_proc-0.2.6.tar.gz.

File metadata

  • Download URL: netmon_proc-0.2.6.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.6.40-1-lts

File hashes

Hashes for netmon_proc-0.2.6.tar.gz
Algorithm Hash digest
SHA256 2bde86c503d257cf96a44ad9f414ff69b745ecde78f12523bb93617cc09b48a3
MD5 a33e84ca4deac072d9a6068ebf60868d
BLAKE2b-256 27cea0792cb936249c816d066b6c62341e07e849b739660b0842705137ff56ad

See more details on using hashes here.

File details

Details for the file netmon_proc-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: netmon_proc-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.6.40-1-lts

File hashes

Hashes for netmon_proc-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f90889843e574efe3c27c6b836db43af17ad7cf2cd03b34307b1f82de0100e45
MD5 eef00d7c5264c2d7c42f6244965f77d2
BLAKE2b-256 69717e640f5d3b4af0620bae00d54b4395ffd8bad2c2800516b42271b09f9f5a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page