Skip to main content

This is a Python-based solution for collecting and analyzing Netflow V9 traffic data.

Project description

netflow2json

This is a Python-based solution for collecting and analyzing Netflow V9 traffic data.

Installation

You can install netflow2json using pip:

pip install netflow2json

Usage

To use netflow2json, you can create an instance of the NetflowProcessor class and start processing Netflow data. See the Examples section for detailed usage examples.

Configuration

You can configure the package by specifying the web_port, netflow_port, and local_ip_ranges when creating a NetflowProcessor instance.

  • local_ip_ranges: This section is used to define local IP address ranges. The code uses these ranges to categorize Netflow traffic as "Local," "Upload," or "Download."

    Example:

    local_ip_ranges = ["192.168.0.0/24", "172.16.11.0/24", "172.16.12.0/24", "172.16.13.0/24", "172.16.14.0/24", "172.16.16.0/24"]
    
  • netflow_port: Specify the port (UDP) on which the code listens for incoming Netflow v9 traffic.

    Example:

    netflow_port = 2055
    
  • web_port: Specify the port of web accessible json results.

 web_port = 80

Examples

from netflow2json.analyser import NetflowProcessor

processor = NetflowProcessor(web_port=8080, netflow_port=2055, local_ip_ranges=['172.16.11.0/24','172.16.12.0/24','172.16.13.0/24','172.16.14.0/24','192.168.0.0/24','192.168.1.0/24'])
processor.start()

License

This project is licensed under the MIT License

Project Repository

Visit the GitHub repository for the latest updates and to contribute.

Bug Tracker

If you encounter any issues or want to report a bug, please visit the Bug Tracker.

Contact Information

For questions or support, you can reach out to the author at h.haghpanah@outlook.com.

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

netflow2json-0.0.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netflow2json-0.0.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file netflow2json-0.0.2.tar.gz.

File metadata

  • Download URL: netflow2json-0.0.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for netflow2json-0.0.2.tar.gz
Algorithm Hash digest
SHA256 59ee8774267cb4607f444358e0da713f9a4b7b9fc8fbc382e5dc2f33929429ee
MD5 4c2f71e5a1baa8135035468c60150d85
BLAKE2b-256 a1b4e26d4efbb9b9c1b8b002cb70c8347815b442e9afda2c2322bd056d7b21ac

See more details on using hashes here.

File details

Details for the file netflow2json-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: netflow2json-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for netflow2json-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2144343fb97661e8a4a3b503aaabe126e073169927d7e783f8b032fef94806d7
MD5 8593faae24163d0e07de944200012425
BLAKE2b-256 59412885c025c84692ea87844754a4ceedea9d10ab2b27c36cc7938fc47ef4b2

See more details on using hashes here.

Supported by

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