# Suricata af-packet ips

**URL:** <https://forum.suricata.io/t/suricata-af-packet-ips/3120>\
**Category:** Help\
**Tags:** ips\
**Created:** [January 11, 2023, 11:53am UTC](https://forum.suricata.io/t/suricata-af-packet-ips/3120 "2023-01-11T11:53:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozgur](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ozgur/32/1977_2.png) [@ozgur](https://forum.suricata.io/u/ozgur)\
**Post date:** [January 11, 2023, 11:53am UTC](https://forum.suricata.io/t/suricata-af-packet-ips/3120/1 "2023-01-11T11:53:23Z")

</div>

Hi everyone,  
I set up af-packet section according to [13. Setting up IPS/inline for Linux — Suricata 7.0.0-rc1-dev documentation](https://suricata.readthedocs.io/en/latest/setting-up-ipsinline-for-linux.html#af-packet-ips-mode) .When I run suricata it gave errors. The errors are  
“”"  
[643279] 11/1/2023 – 11:39:05 - (source-af-packet.c:479) (AFPPeersListCheck) – [ERRCODE: SC\_ERR\_AFP\_CREATE(190)] - Threads number not equals  
[643279] 11/1/2023 – 11:39:05 - (runmode-af-packet.c:890) (RunModeIdsAFPWorkers) – [ERRCODE: SC\_ERR\_FATAL(171)] - Some IPS capture threads did not peer.

“”"  
Any help would be great. Best regards,

This is af-packet section configuration.

- interface: eth0  
threads: 1  
defrag: yes  
cluster-type: cluster\_flow  
cluster-id: 98  
copy-mode: ips  
copy-iface: eth1  
buffer-size: 64535  
use-mmap: yes
  - interface: eth1  
threads: 1  
cluster-id: 97  
defrag: yes  
cluster-type: cluster\_flow  
copy-mode: ips  
copy-iface: eth0  
buffer-size: 64535  
use-mmap: yes

---

<div class="post-metadata">

**Author:** ![Andreas\_Herz](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/andreas_herz/32/52_2.png) [@Andreas\_Herz](https://forum.suricata.io/u/Andreas_Herz)\
**Post date:** [January 17, 2023, 8:40pm UTC](https://forum.suricata.io/t/suricata-af-packet-ips/3120/2 "2023-01-17T20:40:17Z")

</div>

Can you paste your complete suricata.yaml as a file?
