ripflow

module
v0.0.0-...-a2e6e6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2021 License: Apache-2.0

README

ripflow: simple Netflow 5 probe

Configuration

The configuration file is in YAML format.

$ ./ripflow -ripflow.file /path/to/configuration/file.yml
Logging configuration (logging)

Configure the logs.

logging:                       # configure logging properties
  level: debug                 # log level (trace,debug,info,warning,error)
  file: /var/log/riproxy.log   # log file (stderr if not set)
Level (level)

The log level. Must be one of the following :

  • error: used for errors that should definitely be noted.
  • warning (or warn): non-critical entries that deserve eyes.
  • info: general operational entries about what's going on inside the application.
  • debug: usually only enabled when debugging. Very verbose logging.
  • trace: designates finer-grained informational events than the Debug.
File (file)

The log file. Use stderr if not set.

Capturing interfaces (interfaces)

Configure interfaces. This is a map of interface names.

interfaces:                # Capturing interfaces
  eth0:                    # Capture all traffic from eth0
  eth1:                    # Capture traffic from eth1
    filter: not port 53    # BPF filter: exclude traffic from or to port 53
Filter

The BPF program to apply to the interface traffic before extracting flows.

Netflow export configuration (export)

Host and port of the Netflow collector.

export:
  host: 127.0.0.1
  port: 9999

Netflow flow cache (cache)

Probe cache configuration

cache:
  max: 8192            # Maximum cache size (in flows) before oldest flow eviction occurs (default: 65536)
  idle_timeout: 15     # Number of second accepted between two packets in the same flow (default: 15)
  active_timeout: 1800 # Number of seconds a flow can live (default: 1800)

Credits

Many parts are based on the goflowd project by Hitoshi Irino (irino).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL