Skip to content

Commit

Permalink
suricata interface None if so-import
Browse files Browse the repository at this point in the history
  • Loading branch information
m0duspwnens committed Nov 22, 2023
1 parent 0cfb8b0 commit 1dc8878
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions salt/suricata/afpacket.map.jinja
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{% load_yaml as afpacket %}
af-packet:
- interface: {{ salt['pillar.get']('sensor:interface', 'bond0') }}
- interface: {{ None if grains.role == 'so-import' else salt['pillar.get']('sensor:interface', 'bond0') }}
cluster-id: 59
cluster-type: cluster_flow
defrag: yes
use-mmap: yes
threads: {{ salt['pillar.get']('sensor:suriprocs', salt['pillar.get']('sensor:suripins') | length) }}
tpacket-v3: yes
ring-size: {{ salt['pillar.get']('sensor:suriringsize', '5000') }}
- interface: default
#threads: auto
#use-mmap: no
#tpacket-v3: yes
{% endload %}

0 comments on commit 1dc8878

Please sign in to comment.