You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/plugins/pfring
Jason Ish 77d96851f5 pfring: use static functions; add void arg to SCPluginRegister
Minor cleanups.
3 weeks ago
..
Makefile.am pfring: copy cflags over from src/ 3 weeks ago
README.md pf-ring: add as plugin 2 years ago
plugin.c pfring: use static functions; add void arg to SCPluginRegister 3 weeks ago
runmode-pfring.c pfring: fix typo in StringParseUint16 3 weeks ago
runmode-pfring.h pf-ring: add as plugin 2 years ago
source-pfring.c counters: remove ThreadVars from counter registration 3 months ago
source-pfring.h pfring: update thread count callback to match API change 5 months ago

README.md

PF_RING Plugin Capture Plugin

Building

To build this plugin, built Suricata with the --enable-pfring and optionally the --with-libpfring-includes and --with-libpfring-libraries command line options.

Running

/usr/local/suricata/bin/suricata \
    --set plugins.0=/usr/local/lib/suricata/pfring.so \
    --capture-plugin=pfring-plugin \
    --set pfring.0.interface=eno1

--set plugins.0=/usr/local/lib/suricata/pfring.so

This command line option tells Suricata about this plugin. This could also be done in suricata.yaml with the following section:

plugins:
  - /usr/local/lib/suricata/pfring.so

--capture-plugin=pfring-plugin

This is the option that tells Suricata to use a plugin for capture, much like --pcap tells Suricata to use libpcap or --af-packet tells Suricata to use AF_PACKET. Here we are telling it to look for a loaded plugin of the name pfring-plugin to provide the capture method.

--set pfring.0.interface=eno1

This is just overriding the interface name in the example pfring configuration found in the default suricata.yaml, which this plugin knows how to read already as its based off the PF_RING support in Suricata proper.

There is another command line option --capture-plugin-args to pass arbitrary data on the command line a capture plugin, but this plugin does not yet handle data provided through this command line parameter.