nProbe can be used in three modes, namely:
- Collector (flow collection only, no Probe)
- Proxy: Receive flows via NetFlow and emit them (optionally combining with captured traffic) to a remote collector.
nprobe -i eth0 -n collector_ip:2055
By default exported flows are sent over URL, but they can also collected over TCP and TLS. The syntax to use is <method>://<IP>:<port>.
- -n 2055
- -n udp://2055
- -n tcp://2055
- -n tls://2055
- -n tls://192.168.2.25:2055
nprobe -3 2055
By default flows are collected over URL, but they can also collected over TCP and TLS. The syntax to use is <method>://[<IP>:]<port>. In case the IP address is specified the collection port is bound only to the specified IP address instead to all interfaces of the host where nProbe runs.
- -3 2055
- -3 udp://2055
- -3 tcp://2055
- -3 tls://2055
- -3 tls://192.168.2.25:2055
nprobe -3 2055 -n collector_ip:2055 -V 9
In proxy mode you can convert from NetFlow v5 v9/NetFlow Lite/sFlow/IPFIX/jFlow to NetFlow v5, v9 or IPFIX in order to smoothly upgrade to newer netflow protocol versions while capitalizing on previous protocol versions. So you can for instance convert flows coming from your v5 router into IPFIX and vice-versa. Note that with some combinations (e.g. from v9 to v5) you might loose some flow information. In this mode collected flows are converted to an internal flow representation, put in cache, and then exported according to the default or -T, if specified.
Proxy mode with Collector PassThrough¶
nprobe -3 2055 --collector-passthrough --zmq tcp://192.168.1.200:5678
Similar to proxy mode but much faster as flows are not put in cache but converted for export via ZMQ, Syslog, and Kafka (via the export plugin). In this case the flow structure is preserved, -T is ignored, and flow is exported in JSON format as is without any conversion. This mode is recommended when you want to collect flows from NetFlow/IPFIX/sFlow and send them to a JSON-based consumer.