# Access to the Dashboard from outside and inside your home

**URL:** <https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592>\
**Category:** General\
**Created:** [13 May 2020 12:06 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592 "2020-05-13T12:06:58Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [13 May 2020 12:06 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/1 "2020-05-13T12:06:58Z")

</div>

What is the best solution? (This for a neophyte)

Ok, you have easily installed your Letsencrypt certificates with the [node-red-contrib-acme-client](https://github.com/bartbutenaers/node-red-contrib-acme-client) node, performed port forwarding in your router. External access is ok via https. 👌  
But, you should still add a control with credentials and OTP if possible, otherwise access is immediate to the Dashboard.  
The side-effect is that now I also have to enter my credentials when I'm locally at home.  
So it's fine from the outside, but boring when I'm at home.  
Would it be possible to have the best of both worlds?  
Outside the house = identification  
**Inside the house = no identification**  
Is there a parameter in NR that would say,  
if we come from the internal network (example 192.168.x.y) not to ask for identification?  
Or could NR be reached via **2 URL** s, one via http and the other via https ?

I can't talk about Trafeak, Juniper, or Netscaler and other reverse proxies, dockers which are not for a "normal" user.  
**While understanding that it's more professional**.  
Ideas, arguments, solutions are welcome.  
I also want to say that I read the various posts on this forum and articles in Github but it is still very complex for a non-specialist.

---

<div class="post-metadata">

**Author:** ![meeki007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meeki007/32/12499_2.png) [@meeki007](https://discourse.nodered.org/u/meeki007)\
**Post date:** [17 May 2020 16:45 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/2 "2020-05-17T16:45:13Z")

</div>

I know you want a simple solution.........there is none.  
This kind of stuff keep us computer guys employed. If we went making it too easy how would we make a living 😛

You could use nginx proxy server and nginx basic auth to accomplish this.  
also use UFW (linux universal firewall) to only allow local ip's access to node-red port 1880

If you take a look at this server build I wrote up for foundryVTT you will get the Idea.  
[https://github.com/meeki007/FoundryVTT-Server-HowTo#Securing\_Setup\_Page](https://github.com/meeki007/FoundryVTT-Server-HowTo#Securing_Setup_Page)

This is rather complicated stuff for non CLI guys.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [17 May 2020 22:56 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/3 "2020-05-17T22:56:26Z")

</div>

If you want a simple solution and only intend to access your NR from a limited number of external nodes then i would highly recommend ZeroTier.

5 minute install on your phone and RPi and you are set

Craig

---

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [18 May 2020 11:57 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/4 "2020-05-18T11:57:45Z")

</div>

> [@craigcurtin](#):
>
> i would highly recommend ZeroTier.

@craigcurtin  
Hello, Craig,  
Indeed, this morning I tested this Switch Wan solution and it is very quick and easy to start up.  
I could even install it on my NAS. I will search for a while more this tool.  
What bothers me a bit is the fact that I am using resources external to my network.  
But that's another story.  
For now, **I like this super simple solution** to get started.  
Thank you for introducing me to this.

@meeki007  
That said, I will also try to install a nginx proxy server.  
Which seems less simple to approach but which does not expose my resources at ZeroTier. There is work in perspective for my not so young neurons. 🧐

Thank you for your comments and recommendations

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [18 May 2020 22:06 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/5 "2020-05-18T22:06:14Z")

</div>

If you are worried about using an external service you can download and install your own Zerotier master node - you could then have a cheap VPS solution ($5/month) and host it on there - you would then not be reliant on the cloud provider at all

Craig

---

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [20 May 2020 12:44 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/6 "2020-05-20T12:44:33Z")

</div>

This zerotier is really efficient to export his network all over the world !

However certificates that are necessary for other functions (web-push for example) can't work anymore because the certificate embedded by the web server doesn't have the right name and so the browser refuses it.  
Not easy to have everything under the same roof.

---

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [22 May 2020 12:13 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/7 "2020-05-22T12:13:07Z")

</div>

> [@meeki007](#):
>
> If you take a look at this server build I wrote up for foundryVTT you will get the Idea

Well I started by following the tutorial, and all of a sudden I have to go to a site and pay immediately to get the link to download the software.  
It's a bit brutal since I've never seen this software working before. That's the end of my experience.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 May 2020 13:03 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/8 "2020-05-22T13:03:59Z")

</div>

The link is just an example of how to protect a server. In that case it is the VPS linked to that is running the server. In your case you already have the server (node-red) so you don't need another server. Read and understand the linked post. When you have understood it then you will know one way of protecting your node-red.

---

<div class="post-metadata">

**Author:** ![StrongTown](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@StrongTown](https://discourse.nodered.org/u/StrongTown)\
**Post date:** [22 May 2020 14:30 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/9 "2020-05-22T14:30:35Z")

</div>

Look at Real VNC. Free and easy to use (up to 5 devices), secure. Allows access to your designated device from anywhere in the world where you have internet ... via PC, cell phone, tablet, etc..Set up an account on Real VNC site, install server app into device you wish to access and viewer app into device(s) you use to access the server device ... and make them all connected via your Real VNC account. [Real VNC](https://www.realvnc.com/en/).

Even though your devices are all registered In your Real VNC website account (which is no security issue really), all that does is provide a way for the VNC viewer app(s) to find the VNC server(s) across the internet. Once you access your server device you still must enter credentials for access.

I've been using this for years and find it easy to set up and so simple to use.

---

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [24 May 2020 12:44 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/10 "2020-05-24T12:44:21Z")

</div>

Thank you for all your remarks and for this proposal,  
I am indeed familiar with VNC. Also playing around with ZeroTier. It would just need a special DNS to manage these new IP addresses assigned to each device by ZeroTier. Otherwise very good tool.

But my original question is this.  
Can there be 2 URLs in NR, one used with Certificates, SSL, TLS, etc... for secure external access and the other one, internally without all this security?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [24 May 2020 13:39 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/11 "2020-05-24T13:39:18Z")

</div>

One way to do that is to use something like nginx to provide the secure proxy layer in front of the internal network.

---

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [17 June 2020 13:34 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/12 "2020-06-17T13:34:26Z")

</div>

Nginx is great !  
I was able to interface all my internal web services via this reverse proxy with a letsencrypt certificate and alternating names.  
Now, how to install an OTP to make the access totally secure. We're a little far from NR on this one. But if you still have some good ideas or suggestions... 🕶 welcome...

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [17 June 2020 23:35 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/13 "2020-06-17T23:35:12Z")

</div>

Not using Nginx - but Traeffik - try this

> **[Ultimate Docker Home Server with Traefik 2, LE, and OAuth / Authelia \[2020\]](https://www.smarthomebeginner.com/traefik-2-docker-tutorial/)**
>
> This in-depth docker tutorial will show you how to set up a Docker Home Server with Traefik 2 reverse proxy, LetsEncrypt, and Google OAuth.

Craig

---

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [18 June 2020 06:23 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/14 "2020-06-18T06:23:41Z")

</div>

I quickly read this configuration. I immediately ask myself a question, can this Google OAuth work without a connection to Google?  
Is it in charge of managing the OTP?  
Can it be replaced by something independent of the GAFAM.  
I use as standard the FreeOTP+ application, can it be used with Traefik?

As you will have understood, I wish to remain independent of outsourced solutions. No data in the cloud.

This solution is attractive, docker, all in one, there's just this Google word...🤔

Can you tell me more before I dive into this for a few days?

Craig, Thanks for pointing that one out to me.

Jean-Luc

---

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [18 June 2020 07:34 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/15 "2020-06-18T07:34:56Z")

</div>

I understand that [Authelia](https://github.com/authelia/authelia) can be associated with nginx to do the work of dual authentication.  
To dig on this side since I already have nginx which works now.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 June 2020 07:49 UTC](https://discourse.nodered.org/t/access-to-the-dashboard-from-outside-and-inside-your-home/26592/16 "2020-06-18T07:49:58Z")

</div>

> [@Jean-Luc](#):
>
> can this Google OAuth work without a connection to Google

Google OAuth cannot work without a connection to Google. However that is just the particular authentication technique used in the example. You can use whatever authentication technique you like.
