MTU - Now gets dropped into the pillar.

This commit is contained in:
Mike Reeves
2018-11-29 13:56:36 -05:00
parent 2f804335da
commit f03f97b774
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
%YAML 1.1
---
{%- set interface = salt['pillar.get']('sensor:interface', 'bond0') %}
{%- set MTU = salt['pillar.get']('sensor:mtu', '1500') %}
{%- if salt['pillar.get']('sensor:homenet') %}
{%- set homenet = salt['pillar.get']('sensor:hnsensor', '') %}
{%- else %}
@@ -931,7 +932,7 @@ host-mode: auto
# Preallocated size for packet. Default is 1514 which is the classical
# size for pcap on ethernet. You should adjust this value to the highest
# packet size (MTU + hardware header) on your system.
#default-packet-size: 1514
default-packet-size: {{ MTU + 15 }}
# Unix command socket can be used to pass commands to suricata.
# An external tool can then connect to get information from suricata

View File

@@ -740,6 +740,7 @@ sensor_pillar() {
echo " pcapbpf:" >> $TMP/$HOSTNAME.sls
echo " nidsbpf:" >> $TMP/$HOSTNAME.sls
echo " master: $MSRV" >> $TMP/$HOSTNAME.sls
echo " mtu: $MTU" >> $TMP/$HOSTNAME.sls
if [ $HNSENSOR != 'inherit' ]; then
echo " hnsensor: $HNSENSOR" >> $TMP/$HOSTNAME.sls
fi