LOGBOOK

HELP

Quiz Entry - updated: 2026.11.26

Why does the network interface name have to be corrected in several places in suricata.yaml?

Suricata has a separate configuration section for each capture method (AF_PACKET, libpcap, PF_RING, …), and each one names its own interface; all of them default to eth0, which does not exist on a host that uses ens… names.

Suricata can read packets in different ways, called capture methods. Each has its own block in suricata.yaml with its own interface: entry, for example:

af-packet:
  - interface: eth0
pcap:
  - interface: eth0
pfring:
  - interface: eth0

Which block is used depends on the run mode Suricata is started with. If you fix only one block and Suricata starts with another, it still tries to open eth0 and captures nothing. So every occurrence has to be replaced with the real name (found with ip address, here something like ens3).

The name is the host's because the Suricata container uses Docker's host network driver. It shares the host's network stack and interfaces instead of getting its own virtual eth0. That is exactly what an IDS needs, since it must see the host's real traffic.

Go deeper:

From Quiz: ISLAB / Network Security Monitoring | Updated: Nov 26, 2026