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.
Metadata
Release files for netflow2json 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netflow2json-0.0.2.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netflow2json-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / netflow2json-0.0.2.tar.gz
| Download URL | netflow2json-0.0.2.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59ee8774267cb4607f444358e0da713f9a4b7b9fc8fbc382e5dc2f33929429ee
|
|
BLAKE2b-256 checksum How to use checksums |
a1b4e26d4efbb9b9c1b8b002cb70c8347815b442e9afda2c2322bd056d7b21ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / netflow2json-0.0.2-py3-none-any.whl
| Download URL | netflow2json-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2144343fb97661e8a4a3b503aaabe126e073169927d7e783f8b032fef94806d7
|
|
BLAKE2b-256 checksum How to use checksums |
59412885c025c84692ea87844754a4ceedea9d10ab2b27c36cc7938fc47ef4b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|