netobserv / nflow-generator

NetFlow Generator for Testing Flow Collection Apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage - nflow-generator

This program generates mock netflow (v5/v10) data that can be used to test netflow collectors. This is a fork from nflow-generator with implementation of ipfix from ipfix-gen and vflow

Build

Install Go, then:

git clone https://github.com/netobserv/nflow-generator
cd nflow-generator
go build

Run

Feed it the target collector and port, and optional "false-index" flag:

./nflow-generator -t <ip> -p <port> [ -f | --false-index ]

Help

Use -h option to get all applications options and usage examples:

./nflow-generator -h

Deploy on Kubernetes

Edit file netflow_generator.yaml <collector_ip> and <collector_port>. Add extra parameters if needed (ips for example)

Then run:

kubectl apply -f examples/netflow_generator.yaml

About

NetFlow Generator for Testing Flow Collection Apps

License:Apache License 2.0


Languages

Language:Go 99.7%Language:Dockerfile 0.3%