Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.27 KB

af-packet.rst

File metadata and controls

34 lines (20 loc) · 1.27 KB

AF-PACKET

Security Onion uses AF-PACKET to collect traffic from network interfaces. AF-PACKET is built into the Linux kernel and includes fanout capabilities enabling it to act as a flow-based load balancer. This means, for example, if you configure Suricata for 4 AF-PACKET threads then each thread would receive about 25% of the total traffic that AF-PACKET is seeing.

Warning

If you try to test AF-PACKET fanout using tcpreplay locally, please note that load balancing will not work properly and all (or most) traffic will be handled by the first worker in the AF-PACKET cluster. If you need to test AF-PACKET load balancing properly, you can run tcpreplay on another machine connected to your AF-PACKET machine.

The following processes use AF-PACKET for traffic collection:

VLAN tags

Warning

Please note that :ref:`stenographer` should correctly log traffic on a VLAN but won't log the actual VLAN tags due to the way that :ref:`af-packet` works:

More Information

Note

For more information about AF-PACKET, please see: