This commit is contained in:
Steven Foerster
2021-05-03 20:47:08 -04:00
parent 83a01d7e0a
commit 0c65407388
6 changed files with 34 additions and 2 deletions
@@ -0,0 +1,17 @@
filebeat.config:
modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
filebeat.autodiscover:
providers:
- type: docker
hints.enabled: true
processors:
- add_cloud_metadata: ~
output.elasticsearch:
hosts: '${ELASTICSEARCH_HOSTS:elasticsearch:9200}'
username: '${ELASTICSEARCH_USERNAME:}'
password: '${ELASTICSEARCH_PASSWORD:}'
+4
View File
@@ -54,3 +54,7 @@ fi
# sudo cp ./scripts/conf/20-suricata.conf /etc/rsyslog.d/
# sudo chown root:root /etc/rsyslog.d/20-suricata.conf
# sudo systemctl restart rsyslog
IFACE=$(ip -o -4 route show to default | awk 'NR==1{print $5}')
sudo sed -i "s/eth0/${IFACE}/g" /etc/suricata/suricata.yml
sudo sed -i "s/eth0/${IFACE}/g" /etc/default/suricata
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
systemctl start suricata
systemctl enable suricata
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
systemctl stop suricata
systemctl disable suricata