Hello,
On my IDS servers I have a PFRing_ZC configuration where I have 4 sniff interfaces (only incoming traffic), and 2 zbalance_ipc clusters creating multiple packet queue’s for sniffing.
On 4 of the queue’s I have zeek running, listening on zc:0@0, zc:0@1, zc:1@0 and zc:1@1.
On the other 4 queues I want to start Suricata. The interface names of these queues are: zc:0@2, zc:0@3, zc:1@2 and zc:1@3.
Cluster 0 is bound to Numa node 0 and Cluster 1 is bound to Numa node 1.
I have compiled Zuricata with pf_ring support, and ldd tells me this is the case:
[root@idsprobe03 suricata]# ldd /sbin/suricata |grep pfring
libpfring.so.7 => /usr/local/lib/libpfring.so.7 (0x00007fa912dcb000)
I have tried all sorts of pfring config settings, but everything fails:
pfring:
- interface: zc:0@2
# threads: auto
# cluster-id: 0
# cluster-type: cluster_flow
- interface: zc:0@3
# threads: auto
# cluster-id: 0
# cluster-type: cluster_flow
27/10/2020 – 01:51:24 - - ZC interface detected, not setting cluster-id for PF_RING (iface zc:0@2)
27/10/2020 – 01:51:24 - - ZC interface detected, not setting cluster type for PF_RING (iface zc:0@2)
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get feature via ioctl for ‘zc:0@2’: No such device (19)
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get feature via ioctl for ‘zc:0@2’: No such device (19)
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get feature via ioctl for ‘zc:0@2’: No such device (19)
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get feature via ioctl for ‘zc:0@2’: No such device (19)
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get feature via ioctl for ‘zc:0@2’: No such device (19)
27/10/2020 – 01:51:24 - - Going to use 1 thread(s)
27/10/2020 – 01:51:24 - - Setting prio 0 for thread “W#01-zc:0@2” to cpu/core 10, thread id 26924
27/10/2020 – 01:51:24 - - Enabling zero-copy for zc:0@2
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_PF_RING_OPEN(34)] - Failed to open zc:0@2: pfring_open error. Check if zc:0@2 exists and pf_ring module is loaded.
27/10/2020 – 01:51:24 - - ZC interface detected, not setting cluster-id for PF_RING (iface zc:0@3)
27/10/2020 – 01:51:24 - - ZC interface detected, not setting cluster type for PF_RING (iface zc:0@3)
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get feature via ioctl for ‘zc:0@3’: No such device (19)
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get feature via ioctl for ‘zc:0@3’: No such device (19)
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get feature via ioctl for ‘zc:0@3’: No such device (19)
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get feature via ioctl for ‘zc:0@3’: No such device (19)
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get feature via ioctl for ‘zc:0@3’: No such device (19)
27/10/2020 – 01:51:24 - - Going to use 1 thread(s)
27/10/2020 – 01:51:24 - - Setting prio 0 for thread “W#01-zc:0@3” to cpu/core 11, thread id 26935
27/10/2020 – 01:51:24 - - Enabling zero-copy for zc:0@3
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_PF_RING_OPEN(34)] - Failed to open zc:0@3: pfring_open error. Check if zc:0@3 exists and pf_ring module is loaded.
27/10/2020 – 01:51:24 - - RunModeIdsPfringWorkers initialised
27/10/2020 – 01:51:24 - - Setting prio 0 for thread “FM#01”, thread id 26936
27/10/2020 – 01:51:24 - - Setting prio 0 for thread “FR#01”, thread id 26937
27/10/2020 – 01:51:24 - - Setting prio 0 for thread “CW”, thread id 26938
27/10/2020 – 01:51:24 - - Setting prio 0 for thread “CS”, thread id 26939
27/10/2020 – 01:51:24 - - Running in live mode, activating unix socket
27/10/2020 – 01:51:24 - - Using unix socket file ‘/var/run/suricata/suricata-command.socket’
27/10/2020 – 01:51:24 - - Setting prio 0 for thread “US”, thread id 26940
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_THREAD_INIT(49)] - thread “W#01-zc:0@2” failed to initialize: flags 0145
27/10/2020 – 01:51:24 - - [ERRCODE: SC_ERR_FATAL(171)] - Engine initialization failed, aborting…
What am I doing wrong?
Greetings,
Jan Hugo Prins