# Web Access to external IP

**URL:** <https://forum.greenbone.net/t/web-access-to-external-ip/2256>\
**Category:** Greenbone Community Edition\
**Created:** [May 6, 2019, 1:10pm UTC](https://forum.greenbone.net/t/web-access-to-external-ip/2256 "2019-05-06T13:10:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chussi](https://forum.greenbone.net/letter_avatar/chussi/32/6_449c533f586939b6e5f246632a46421f.png) [@chussi](https://forum.greenbone.net/u/chussi)\
**Post date:** [May 6, 2019, 1:10pm UTC](https://forum.greenbone.net/t/web-access-to-external-ip/2256/1 "2019-05-06T13:10:11Z")

</div>

Hey, I changed the listing port to my external ip of the server.

But my browsers won´t allow access due to invalid certifcate. Tried to import the certficate to the root store. But chrome is not providing a “add execption” button, IE / Edge either.

What can I do to get access to the webinterface ? Locally on the server everything works fine

Listen on external interface  
/lib/systemd/system/

sed -e ‘s/127.0.0.1/0.0.0.0/g’ greenbone-security-assistant.service openvas-manager.service openvas-scanner.service  
sed -e ‘s/127.0.0.1/0.0.0.0/g’ greenbone-security-assistant.service openvas-manager.service openvas-scanner.service -i

systemctl daemon-reload  
systemctl restart greenbone-security-assistant.service openvas-manager.service openvas-scanner.service

###### 

update  
Installed Firefox - I could set an excpetion here, but afterwards:

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.

I am not using a hostname or domain.  
I tried  
gsad --allow-header-host

but no change

OK- got it - at least in Firefox browser

edited /lib/systemd/system/greenbone-security-assistant.service

[Unit]  
Description=Greenbone Security Assistant  
Documentation=man:gsad(8) [http://www.openvas.org/](http://www.openvas.org/)  
Wants=openvas-manager.service

[Service]  
Type=simple  
PIDFile=/var/run/gsad.pid  
ExecStart=/usr/sbin/gsad --foreground --listen=0.0.0.0 --port=9392 --mlisten=0.0.0.0 --mport=9390 --allow-header-host my\_external\_ip

root@KALI:~# systemctl daemon-reload  
root@KALI:~# systemctl restart greenbone-security-assistant.service

---

<div class="post-metadata">

**Author:** ![Lukas](https://forum.greenbone.net/user_avatar/forum.greenbone.net/lukas/32/17_2.png) [@Lukas](https://forum.greenbone.net/u/Lukas)\
**Post date:** [May 7, 2019, 9:53am UTC](https://forum.greenbone.net/t/web-access-to-external-ip/2256/2 "2019-05-07T09:53:40Z")

</div>

Keep in mind you are using a uncoordinated installation “Kali” this is not the Community Edition.  
I moved the topic to the appropriated forum.

---

<div class="post-metadata">

**Author:** ![hildeb](https://forum.greenbone.net/user_avatar/forum.greenbone.net/hildeb/32/56_2.png) [@hildeb](https://forum.greenbone.net/u/hildeb)\
**Post date:** [May 8, 2019, 9:26am UTC](https://forum.greenbone.net/t/web-access-to-external-ip/2256/3 "2019-05-08T09:26:21Z")

</div>

Personally, I use apache2 in a reverse proxy setup. That way gsad can stay bound to localhost (with http only, even) and apache2 does all the SSL stuff.

```
  SSLProxyEngine on
  # Map to /
  ProxyPass "/" "http://127.0.0.1/"
  ProxyPassReverse "/" "http://127.0.0.1/"
```

---

<div class="post-metadata">

**Author:** ![khurst](https://forum.greenbone.net/letter_avatar/khurst/32/6_449c533f586939b6e5f246632a46421f.png) [@khurst](https://forum.greenbone.net/u/khurst)\
**Post date:** [May 12, 2019, 6:57pm UTC](https://forum.greenbone.net/t/web-access-to-external-ip/2256/4 "2019-05-12T18:57:40Z")

</div>

I am having a similar issue on an Ubuntu installation that I’ve inherited. The server is running on 192.168.100.244 and per /etc/default/openvas-gsa, the PORT\_NUMBER=4000 is the only variable not commented out, i… #MANAGER\_PORT\_NUMBER=9390 - commented out

If I connect from any host on the 192.168.100.x/24 subnet, I can pull this up in the browser using [https://192.168.100.244:4000](https://192.168.100.244:4000)

I am trying to access it from a second subnet, one I can remote in via our VPN, and it does not respond. I’m not sure if I should be changing either LISTEN\_ADDRESS or MANAGER\_ADDRESS and if so, change one of them to 192.168.100.244? I don’t want or need to get to this via a public address, just from my VPN subnet that I use to remotely access this office. I can ping/traceroute to this 192.168.100.244 from the VPN subnet so I don’t think there are any routing issues

---

<div class="post-metadata">

**Author:** ![bricks](https://forum.greenbone.net/user_avatar/forum.greenbone.net/bricks/32/46_2.png) [@bricks](https://forum.greenbone.net/u/bricks)\
**Post date:** [May 13, 2019, 6:08am UTC](https://forum.greenbone.net/t/web-access-to-external-ip/2256/5 "2019-05-13T06:08:03Z")

</div>

You are very likely using the packages from [https://launchpad.net/~mrazavi/+archive/ubuntu/openvas](https://launchpad.net/%7Emrazavi/+archive/ubuntu/openvas)

Please ask the package maintainer for this PPA for howto adjusting the settings. I don’t think he is available at this forum.

---

<div class="post-metadata">

**Author:** ![cfi](https://forum.greenbone.net/letter_avatar/cfi/32/6_449c533f586939b6e5f246632a46421f.png) [@cfi](https://forum.greenbone.net/u/cfi)\
**Post date:** [December 31, 2019, 2:14pm UTC](https://forum.greenbone.net/t/web-access-to-external-ip/2256/6 "2019-12-31T14:14:57Z")

</div>

To avoid that multiple topics about the same questions are open i would also close this topic as a duplicate of the following one below which contains quite a lot information and various solutions. Please follow-up there if you have further questions around this topic.

> **[External access to GSA web interface / IP](https://forum.greenbone.net/t/external-access-to-gsa-interface/1671)**
>
> I install openvas 9 on kali. I alreadys install openvas9 and use url https://127.0.0.1:9392. But i can’t use my computer’s ip to open this management web. I try to modify /lib/systemd/system/greenbone-security-assistant.service "...

---

<div class="post-metadata">

**Author:** ![cfi](https://forum.greenbone.net/letter_avatar/cfi/32/6_449c533f586939b6e5f246632a46421f.png) [@cfi](https://forum.greenbone.net/u/cfi)\
**Post date:** [December 31, 2019, 2:15pm UTC](https://forum.greenbone.net/t/web-access-to-external-ip/2256/7 "2019-12-31T14:15:02Z")

</div>

Closed on December 31, 2019, 2:15pm UTC


