Access Router through Nabu Casa

As a fallback my router has a WWAN module to connect to the internet when my wired connection fails.
However this mobile connection only get’s a private IP (10...*) so there is no way of connecting to it from external.

It would be great to use home assistant as a “jump point” in the local network to connect to the router.
As home assistant’s connection to Nabu Casa is an outgoing connection it has no problem with the private IP.

I know there is the panel_iframe: which would work except there are two problems:

  1. The connection between HA and Nabu Casa is SSL encrypted. For panel_iframe to work the router (Fritzbox) needs to be SSL as well, but it isn’t.
  2. There is some directive in the HTML of my router that prevents it from being displayed in an iFrame. It always has to be in the root-window.

Is there any way use the working connection to Nabu Casa to display the webpage of my router?

You could perhaps set up an nginx ssl proxy between HA and the router.

I managed to access the router with SSL.

This leaves the second point.

Would nginx help with this too? Would it be able to parse and modify the page content?

I am trying to avoid complexity at all cost, so installing the nginx addon, which also requires the MariaDB addon would be hard for me :flushed:

The routers webpage have security features that prevents iframes and the likes, because it is a security risk.
Trying to get a full access will be challenging.

If you just do the same action to get it back online, then that might be easier to script in HA, like a SNMP with write access or a SSH script.

That’s what I suspected. I was hoping for some kind of proxying without a proxy :flushed:

Do you have an always on PC (other than Home assistant) on the local network?

AnyDesk will work through CGNAT.

Thank you for your suggestion but no, I don’t.

It is not that important to me to access my router in this scenario. Everything should work automatically (fail-over, fail-back).

It would just have been nice to be fully functional in case of a fail-over, using the infrastructure already in place (Nabu Casa, HA).

I’m not willing to accept the additional complexity that would be introduced with the suggested solutions.

I’ll look into a CLI for my router, using the SSH add-in of HA.

What router is it?

It’s a Fritzbox from AVM. Just checked: no CLI :cry:.

What are you actually wanting to do on the router?

Also some fritzbox models have ssh access.

As mentioned before there is not one thing I wish to do. It’s not really essential, as everything should work automatically.
In case I am not home and my internet connection failed over to mobile I would feel better if I had access to my router.