kgdx
(Kgdx)
October 13, 2021, 4:09pm
1
I try to create an i frame, poiting to an internal URL, with no success.
I found this post (Accessing local websites via remote control nabu casa URL - #4 by pjcarly )
I follow its instructions and created this code on my config file:
panel_iframe:
sonweb:
title: serverconfig
icon: mdi:lightbulb-on
url: /config/server_control
proxmox:
title: "Proxmox"
url: "https://192.168.100.2:8006"
router:
title: Router
url: "https://192.168.100.1"
The first frame, worked perfectly, but the other 2 (my proxmox server webpage and home router page, do not work.
I read on later on the same post that this cant be done using Nabu casa (I’m using it and wont change this)
That link shows exactly what i want to do.
I don’t think it will be possible via Nabu Casa.
There is the iframe Panel support, but it also does not work with Nabu Casa:
[2020-07-21_121730]
Iframe with the login to my Asus NAS
If your router supports it use a VPN on a tablet or mobile phone and connect directly to your home network.
Am I doing something wrong?
Is there any other option to get this?
browetd
(Browet Didier)
October 13, 2021, 4:15pm
2
Did you try with “http” instead of “https” ? https needs a certificate… do you have one for 192.168.100.2 ? Maybe the reason why it is not working
kgdx
(Kgdx)
October 13, 2021, 4:19pm
3
I have tested the following variant with no success:
proxmox:
title: "Proxmox"
url: https://192.168.100.2:8006
router:
title: Router
url: https://192.168.100.1
No double quotes
proxmox:
title: "Proxmox"
url: http://192.168.100.2:8006
router:
title: Router
url: http://192.168.100.1
use of http and no quotes.
Non of those have worked so far and not sure how to diagnose issues.
Thanks fro the suggestion.
koying
(Chris B)
October 13, 2021, 4:36pm
4
Just to be sure it’s clear for you: you’ll never be able to display an internal page from internet via an iframe.
kgdx
(Kgdx)
October 13, 2021, 4:40pm
5
Why? Please look the post I tagged (this one: Accessing local websites via remote control nabu casa URL - #6 by Joerg ) and see the image, he is displaying the internal page of his NUT at his home.
Thanks for your help.
koying
(Chris B)
October 13, 2021, 4:46pm
6
Why?
Because the pages in an iframe also need to be accessible from the internet. There is no magic proxying.
So, will never work with an internal Ip. With a VPN or a reverse proxy, sure, but then the url’s will be different.
petro
(Petro)
October 13, 2021, 4:47pm
7
Just to clarify what @koying is saying, even the post you’re referencing specifically says he’s using a VPN.
kgdx
(Kgdx)
October 13, 2021, 4:48pm
8
Now I underestand your comment @koying thanks for it, and also thanks to @petro for further clarify.
Any other recomendation?
thanks.
koying
(Chris B)
October 13, 2021, 4:57pm
9
Besides VPN or reverse proxy? None that come to mind.
kgdx
(Kgdx)
October 13, 2021, 4:59pm
10
Ok i will see what optins do I have on those two.
Thanks.
Install the Wireguard addon - and set up the VPN client on any device that needs access. That’s the easiest way. I use Wireguard to view my CCTV cameras when I am not at home.
Joerg
October 13, 2021, 5:42pm
12
Hi,
the view I showed is the internal view, but I told its not working with NC:
Viewed via NabuCasa it looks like this:
As said: use a VPN like for example VpnCilla if you are on Android