I noticed that when I create a tunnel locally from my PC to the remote one, for some devices (generally routers), the connection via http or https does not take place. I get a pop-up that says:
The 'Host' field contained in Http header is invalid
If setting the following in the file hosts file:
127.0.0.1 modemtim
and I connect using modemtim and not only 127.0.0.1, everything works correctly.
SSH command:
ssh -L 8080:<IP_REMOTE_ROUTER>:80 <USER>@<REMOTE_TUNNEL>
Why?