mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #56 from dlee35/master
add firewall rule option for osquery
This commit is contained in:
3
pillar/firewall/osquery_endpoint.sls
Normal file
3
pillar/firewall/osquery_endpoint.sls
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
osquery_endpoint:
|
||||||
|
- 127.0.0.1
|
||||||
|
|
||||||
@@ -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') %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user