summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHasan ÇALIŞIR <hasan.calisir@psauxit.com>2019-03-19 16:10:04 +0300
committerPatrice Clement <monsieurp@gentoo.org>2019-03-23 00:59:19 +0100
commit499a8a74759e1600402d6774c4c790649b1e7540 (patch)
tree56b2c20a53d304a283a3273565b7f4b80a615646 /net-analyzer
parentnet-analyzer/openvas: minor improvements. (diff)
downloadgentoo-499a8a74759e1600402d6774c4c790649b1e7540.tar.gz
gentoo-499a8a74759e1600402d6774c4c790649b1e7540.tar.bz2
gentoo-499a8a74759e1600402d6774c4c790649b1e7540.zip
net-analyzer/greenbone-security-assistant: revbump to 7.0.3-r1.
Introduces the new daemon arg for systemd & init.d. This fixes the reverse proxy error comes with openvas WebUI(GSA). Signed-off-by: Hasan ÇALIŞIR <hasan.calisir@psauxit.com> Package-Manager: Portage-2.3.62, Repoman-2.3.11 Closes: https://github.com/gentoo/gentoo/pull/11410 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf11
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsa.init2
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsa.service2
-rw-r--r--net-analyzer/greenbone-security-assistant/greenbone-security-assistant-7.0.3-r1.ebuild (renamed from net-analyzer/greenbone-security-assistant/greenbone-security-assistant-7.0.3.ebuild)0
4 files changed, 13 insertions, 2 deletions
diff --git a/net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf b/net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf
index 9d34da62659c..2c9a62eef811 100644
--- a/net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf
+++ b/net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf
@@ -18,3 +18,14 @@ OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_PORT="--mport=9390"
# TLS Settings
OPENVAS_SECURITY_ASSISTANT_GNUTLS_PRIORITIES="--gnutls-priorities=NORMAL"
+
+# If you use reverse proxy you must set OPENVAS_REVERSE_PROXY daemon arg
+# otherwise you will get the below error.
+# ---------------------------------------------------------------
+# The request contained an unknown or invalid Host header.
+# If you are trying to access GSA via its hostname or a proxy,
+# make sure GSA is set up to allow it.
+# ---------------------------------------------------------------
+
+# Reverse Proxy Settings ( e.g. --allow-header-host=subdomain.example.com )
+OPENVAS_REVERSE_PROXY="--allow-header-host="
diff --git a/net-analyzer/greenbone-security-assistant/files/gsa.init b/net-analyzer/greenbone-security-assistant/files/gsa.init
index 6e625a96a25c..2b4636422422 100644
--- a/net-analyzer/greenbone-security-assistant/files/gsa.init
+++ b/net-analyzer/greenbone-security-assistant/files/gsa.init
@@ -4,7 +4,7 @@
name="Greenbone Security Assistant Daemon"
command="/usr/sbin/gsad"
-command_args="${OPENVAS_SECURITY_ASSISTANT_OPTIONS} ${OPENVAS_SECURITY_ASSISTANT_LISTEN_ADDRESS} ${OPENVAS_SECURITY_ASSISTANT_LISTEN_PORT} ${OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_ADDRESS} ${OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_PORT} ${OPENVAS_SECURITY_ASSISTANT_GNUTLS_PRIORITIES}"
+command_args="${OPENVAS_SECURITY_ASSISTANT_OPTIONS} ${OPENVAS_SECURITY_ASSISTANT_LISTEN_ADDRESS} ${OPENVAS_SECURITY_ASSISTANT_LISTEN_PORT} ${OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_ADDRESS} ${OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_PORT} ${OPENVAS_SECURITY_ASSISTANT_GNUTLS_PRIORITIES} ${OPENVAS_REVERSE_PROXY}"
pidfile="/var/run/gsad.pid"
command_background="true"
diff --git a/net-analyzer/greenbone-security-assistant/files/gsa.service b/net-analyzer/greenbone-security-assistant/files/gsa.service
index 3d0f2d37a45e..bc8c1d9e285c 100644
--- a/net-analyzer/greenbone-security-assistant/files/gsa.service
+++ b/net-analyzer/greenbone-security-assistant/files/gsa.service
@@ -8,7 +8,7 @@ Wants=gvmd.service
[Service]
Type=forking
EnvironmentFile=-/etc/openvas/sysconfig/gsa-daemon.conf
-ExecStart=/usr/sbin/gsad $OPENVAS_SECURITY_ASSISTANT_OPTIONS $OPENVAS_SECURITY_ASSISTANT_LISTEN_ADDRESS $OPENVAS_SECURITY_ASSISTANT_LISTEN_PORT $OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_ADDRESS $OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_PORT $OPENVAS_SECURITY_ASSISTANT_GNUTLS_PRIORITIES
+ExecStart=/usr/sbin/gsad $OPENVAS_SECURITY_ASSISTANT_OPTIONS $OPENVAS_SECURITY_ASSISTANT_LISTEN_ADDRESS $OPENVAS_SECURITY_ASSISTANT_LISTEN_PORT $OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_ADDRESS $OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_PORT $OPENVAS_SECURITY_ASSISTANT_GNUTLS_PRIORITIES $OPENVAS_REVERSE_PROXY
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
User=root
diff --git a/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-7.0.3.ebuild b/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-7.0.3-r1.ebuild
index c58b1ab920e2..c58b1ab920e2 100644
--- a/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-7.0.3.ebuild
+++ b/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-7.0.3-r1.ebuild