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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for netflow2json-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2144343fb97661e8a4a3b503aaabe126e073169927d7e783f8b032fef94806d7 |
|
MD5 | 8593faae24163d0e07de944200012425 |
|
BLAKE2b-256 | 59412885c025c84692ea87844754a4ceedea9d10ab2b27c36cc7938fc47ef4b2 |