From eb054fe88c08da2c328eeb0e78cca67062c64dba Mon Sep 17 00:00:00 2001 From: root <root@srv2.soctools.grena.ge> Date: Mon, 21 Nov 2022 18:18:23 +0400 Subject: [PATCH] fix generation of haproxy ACL for opensearches --- access.ips | 2 +- generate_haproxy_whitelist_files.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/access.ips b/access.ips index 03ba5b6..0087115 100644 --- a/access.ips +++ b/access.ips @@ -20,7 +20,7 @@ ### OPENSEARCHES - Start ### -127.0.0.1 +172.22.0.0/16 ### OPENSEARCHES - End ### diff --git a/generate_haproxy_whitelist_files.sh b/generate_haproxy_whitelist_files.sh index 3b30698..09739bd 100755 --- a/generate_haproxy_whitelist_files.sh +++ b/generate_haproxy_whitelist_files.sh @@ -2,7 +2,7 @@ awk '/HAProxy Stats - Start/{flag=1; next} /HAProxy Stats - End/{flag=0} flag' access.ips > roles/haproxy/files/stats_whitelist.lst awk '/Nifi Management - Start/{flag=1; next} /Nifi Management - End/{flag=0} flag' access.ips > roles/haproxy/files/nifi_whitelist.lst awk '/Nifi ports - Start/{flag=1; next} /Nifi ports - End/{flag=0} flag' access.ips > roles/haproxy/files/nifiports_whitelist.lst -awk '/OPENSEARCHES - Start/{flag=1; next} /OPENSEARCHES - End/{flag=0} flag' access.ips > roles/haproxy/files/opensearches_whitelist.lst +awk '/OPENSEARCHES - Start/{flag=1; next} /OPENSEARCHES - End/{flag=0} flag' access.ips > roles/haproxy/files/opensearches_whitelist.lst awk '/KeyCloak - Start/{flag=1; next} /KeyCloak - End/{flag=0} flag' access.ips > roles/haproxy/files/keycloak_whitelist.lst awk '/TheHive - Start/{flag=1; next} /TheHive - End/{flag=0} flag' access.ips > roles/haproxy/files/thehive_whitelist.lst awk '/Cortex - Start/{flag=1; next} /Cortex - End/{flag=0} flag' access.ips > roles/haproxy/files/cortex_whitelist.lst -- GitLab