Project

General

Profile

Bug #6587 » manual_bridge_suricata.sh

Francis Trudeau, 11/29/2023 07:51 PM

 
#!/bin/bash


/usr/bin/dpdk-devbind.py -b e1000e 0000:07:00.0
/usr/bin/dpdk-devbind.py -b e1000e 0000:08:00.0

/usr/bin/dpdk-hugepages.py -u
/usr/bin/dpdk-hugepages.py -c
/usr/bin/dpdk-hugepages.py -s

# add bridge

/usr/sbin/ifconfig enp7s0 up
/usr/sbin/ifconfig enp8s0 up

/usr/sbin/brctl show
/usr/sbin/brctl addbr br0
/usr/sbin/brctl addif br0 enp7s0
/usr/sbin/brctl addif br0 enp8s0

/usr/sbin/ifconfig br0 up

#/usr/bin/suricata -vvvv -i br0 -c /etc/suricata/suricata.dpdk.tap.yaml
# /usr/local/bin/suricata703dev -vvvv -i br0 -c /etc/suricata/suricata.dpdk.tap.yaml
/opt/suricata/suricata-src/suricata-8-dev/src/suricata -vvvv -i br0 -c /etc/suricata/suricata.dpdk.tap.yaml
(6-6/8)