Please include the following information with your help request:
- Suricata version : 7.0.10
- Operating system and/or Linux distribution : Ubuntu 22.04.5 6.1.0-37-amd64
- How you installed Suricata (from source, packages, something else) : Build it from release
Hi There,
I am trying to setup a DPDK based link that flows traffic from eth0 to OVS and then to suricata using vdev iface, i have got dpdk setup like binding, hugepages etc , also setup suricata build which is compatible with dpdk and i have setup ovs with dpdk and setup a bridge as well, but i am unable to start suricata with error:
Error: dpdk: DPDK configuration could not be parsed
my config file for suricata:
%YAML 1.1
---
dpdk:
eal-params:
proc-type: primary
# iova-mode: pa
vdev: ['net_vhost0,iface=/var/run/openvswitch/vhost-user0.sock', 'net_vhost1,iface=/var/run/openvswitch/vhost-user1.sock']
# a: "0000:00:12.0"
# no-huge: true
# m: 1000
# n: 1
# v: true
# main-lcore: 0
interfaces:
# - interface: "0000:00:12.0"
- interface: "net_vhost0"
- interface: "net_vhost1"
threading:
set-cpu-affinity: yes
cpu-affinity:
- management-cpu-set:
cpu: [ 0 ]
- worker-cpu-set:
cpu: [ "all" ]
runmode: workers
Runtime messages:
suricata -c ./dpdk-config.yml --dpdk -vv
Notice: suricata: This is Suricata version 7.0.10 RELEASE running in SYSTEM mode
Info: cpu: CPUs/cores online: 4
Info: suricata: Setting engine mode to IDS mode by default
Info: suricata: No 'host-mode': suricata is in IDS mode, using default setting 'sniffer-only'
Warning: counters: stats are enabled but no loggers are active
Info: detect: No signatures supplied.
Warning: dpdk: "all" specified in worker CPU cores affinity, excluding management threads
Error: dpdk: DPDK configuration could not be parsed
OVS Bridge :
ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk options:dpdk-devargs="0000:00:12.0"
ovs-vsctl add-port br0 vhost-user1 -- set Interface vhost-user1 type=dpdkvhostuserclient options:vhost-server-path=/var/run/openvswitch/vhost-user0.sock
ovs-vsctl add-port br0 vhost-user2 -- set Interface vhost-user2 type=dpdkvhostuserclient options:vhost-server-path=/var/run/openvswitch/vhost-user1.sock
dpdk-devbind.py -s :
dpdk-devbind.py -s
Network devices using DPDK-compatible driver
============================================
0000:00:12.0 'Virtio network device 1000' drv=igb_uio unused=virtio_pci
What i want is a single machine setup which has internet and ssh access with suricata dpdk based filtering, what is this parsing error, i tried it a lot but no avail, any docs available how to correctly define it.
Except suricata i don’t have any error visible whatsoever.