# Free Node-RED Hosting in the Cloud - Grafana

**URL:** <https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud-grafana/59320>\
**Category:** General\
**Created:** [3 March 2022 16:27 UTC](https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud-grafana/59320 "2022-03-03T16:27:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [3 March 2022 16:27 UTC](https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud-grafana/59320/1 "2022-03-03T16:27:29Z")

</div>

Hi,

Bit off the topic here

The post [Free Node-RED Hosting in the Cloud](https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud/52116) very nice.

Have anyone add the deployment of Grafana?

I can load Grafana and the server is running, but cant access it from outside. (I did stet the fire wall) but seems the port is not open.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [3 March 2022 20:27 UTC](https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud-grafana/59320/2 "2022-03-03T20:27:27Z")

</div>

Ok seems I have won 1/2.

Used the [guide](https://grafana.com/docs/grafana/latest/installation/rpm/) to install Grafana

Then opened port 3000 in the security settings.

And then ran from the command line - `sudo iptables -I INPUT -p tcp --dport 3000 -j ACCEPT`

But as soon as I reboot the instance I need to rerun - `sudo iptables -I INPUT -p tcp --dport 3000 -j ACCEPT`

---

<div class="post-metadata">

**Author:** ![paulkeates](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@paulkeates](https://discourse.nodered.org/u/paulkeates)\
**Post date:** [3 March 2022 20:59 UTC](https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud-grafana/59320/3 "2022-03-03T20:59:16Z")

</div>

Hi,

Can you run the iptables command followed by the Node-RED startup command from a startup script that is executed at boot time?

How about running iptables from an 'Exec' command within Node-RED before you need to expose the Grafana interface?

Or how about the Daemon node? [node-red-node-daemon (node) - Node-RED](https://flows.nodered.org/node/node-red-node-daemon)

Cheers,

Paul

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [3 March 2022 21:05 UTC](https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud-grafana/59320/4 "2022-03-03T21:05:59Z")

</div>

> [@ScheepersJohan](#):
>
> Have anyone add the deployment of Grafana?

Hi Johan, yes I have influx & grafana running in a Oracle cloud instance, but it's a while since I set it up.  
However I did make a few notes about the oracle firewall, which may help you...

```auto
sudo firewall-cmd --permanent --zone=public --add-port=2087-2087/tcp
sudo firewall-cmd --reload
sudo firewall-cmd --permanent --zone=public --remove-port=3000/tcp
sudo firewall-cmd --zone=public --list-ports

```

Also, take a look at [ORACLE-BASE - Linux Firewall (firewalld, firewall-cmd, firewall-config)](https://oracle-base.com/articles/linux/linux-firewall-firewalld)

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [3 March 2022 21:18 UTC](https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud-grafana/59320/5 "2022-03-03T21:18:49Z")

</div>

> [@Paul-Reed](#):
>
> `sudo firewall-cmd --permanent --zone=public --remove-port=3000/tcp`

Thank you @Paul-Reed, but this did not open the port.

My InfluxDB were running fine without needing to open up the firewall.

@paulkeates Thank you I will need to look at the startup script option maybe

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [3 March 2022 21:23 UTC](https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud-grafana/59320/6 "2022-03-03T21:23:56Z")

</div>

> [@ScheepersJohan](#):
>
> but this did not open the port

No, that command closes port 3000

I was referring to port 2087 - which is the port from which I serve my Grafana charts (the same port as listed in the grafana config)  
(I left the port 3000 in as an example so you can both open and close whichever port you wish)

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [3 March 2022 21:30 UTC](https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud-grafana/59320/7 "2022-03-03T21:30:04Z")

</div>

> [@Paul-Reed](#):
>
> `remove-port=3000/tcp`

I were wondering why you wanted me to remove the port.

So now I add the port and have reboot the instance a few time and it stays open ---- Working ---- Happy Days ---- 🙂

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [3 March 2022 21:31 UTC](https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud-grafana/59320/8 "2022-03-03T21:31:04Z")

</div>

sudo firewall-cmd --permanent --zone=public --add-port=3000/tcp  
sudo firewall-cmd --reload

@Paul-Reed Thank you

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [17 March 2022 21:32 UTC](https://discourse.nodered.org/t/free-node-red-hosting-in-the-cloud-grafana/59320/9 "2022-03-17T21:32:00Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
