Actions
Bug #818
closedaf-packet ips mode
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:
Description
Hi,
I'd like to use suricata to copy all the traffic from eth1 to eth2 and filter the unwanted traffic.
my config part:
af-packet: - interface: eth1 # Number of receive threads (>1 will enable experimental flow pinned # runmode) threads: 1 cluster-id: 99 cluster-type: cluster_flow defrag: yes use-mmap: yes copy-mode: ips copy-iface: eth2
When I run suricata (suricata -c /etc/suricata/suricata-debian.yaml --af-packet)
I receive this error:
29/5/2013 -- 12:39:17 - <Info> - Adding interface eth1 from config file 29/5/2013 -- 12:39:17 - <Info> - Using 1 live device(s). 29/5/2013 -- 12:39:17 - <Info> - Enabling mmaped capture on iface eth1 29/5/2013 -- 12:39:17 - <Info> - AF_PACKET TAP mode activated eth1->eth2 29/5/2013 -- 12:39:17 - <Info> - Using flow cluster mode for AF_PACKET (iface eth1) 29/5/2013 -- 12:39:17 - <Info> - Using defrag kernel functionality for AF_PACKET (iface eth1) 29/5/2013 -- 12:39:17 - <Info> - Enabling zero copy mode by using data release call 29/5/2013 -- 12:39:17 - <Error> - [ERRCODE: SC_ERR_AFP_CREATE(190)] - Threads number not equals 29/5/2013 -- 12:39:17 - <Error> - [ERRCODE: SC_ERR_RUNMODE(187)] - Some IPS capture threads did not peer.
A new entry appears in kern.log:
Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev- instead.
versions:
suricata 1.4.1
kernel: 3.8
system: debian sid
Updated by Victor Julien almost 12 years ago
- Description updated (diff)
You'll need both interfaces in your af-packet section like described here: https://home.regit.org/2012/09/new-af_packet-ips-mode-in-suricata/
Actions