Reserve ports for Zeek

This commit is contained in:
Mike Reeves
2021-04-01 10:29:58 -04:00
parent 0d05612393
commit 40313fc2f5
2 changed files with 3 additions and 2 deletions

View File

@@ -1 +1 @@
net.ipv4.ip_local_reserved_ports=55000,57314,47760,47761,47762
net.ipv4.ip_local_reserved_ports=55000,57314,55000,57314,47760-47860

View File

@@ -266,9 +266,10 @@ docker:
- file: docker_daemon
# Reserve OS ports for Docker proxy in case boot settings are not already applied/present
# 55000 = Wazuh, 57314 = Strelka, 47760-47860 = Zeek
dockerapplyports:
cmd.run:
- name: if [ ! -s /etc/sysctl.d/99-reserved-ports.conf ]; then sysctl -w net.ipv4.ip_local_reserved_ports="55000,57314,47760,47761,47762"; fi
- name: if [ ! -s /etc/sysctl.d/99-reserved-ports.conf ]; then sysctl -w net.ipv4.ip_local_reserved_ports="55000,57314,47760-47860"; fi
# Reserve OS ports for Docker proxy
dockerreserveports: