Merge pull request #56 from dlee35/master

add firewall rule option for osquery
This commit is contained in:
Mike Reeves
2018-12-13 13:42:13 -05:00
committed by GitHub
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
osquery_endpoint:
- 127.0.0.1

View File

@@ -10,7 +10,7 @@
{% elif grains['role'] == 'so-sensor'%} {% elif grains['role'] == 'so-sensor'%}
{%- set ip = salt['pillar.get']('sensor:mainip', '') %} {%- set ip = salt['pillar.get']('node:mainip', '') %}
{% endif %} {% endif %}
@@ -347,6 +347,22 @@ enable_standard_beats_5044_{{ip}}:
{% endfor %} {% endfor %}
# Allow OSQuery Endpoints to send their traffic
{% for ip in pillar.get('osquery_endpoint') %}
enable_standard_osquery_8080_{{ip}}:
iptables.insert:
- table: filter
- chain: DOCKER-USER
- jump: ACCEPT
- proto: tcp
- source: {{ ip }}
- dport: 8080
- position: 1
- save: True
{% endfor %}
# Allow Analysts # Allow Analysts
{% for ip in pillar.get('analyst') %} {% for ip in pillar.get('analyst') %}