Hi mates, I suppose this is a difficult question, but maybe somebody experienced it in past.
I've a RPi running Node-red, I need to access to its SSH and the backend Node red http site, but the RPi is connected to a provider which gives only private IP addresses, means no port-forwarding.
I don't want VPN, a VPN means that all the traffic, all ports, everything will be tunneled to the server with public IP address, I want the RPi uses the local IP for download from internet and I want to access it from the LAN, means no tunnel.
I'm expecting I need a software who creates a second IP address on RPi, and tunnel it to the server, and keep the tunnel active. When the server will request something on second local RPi IP, the RPi will be able to open to its loopback the desidered port, if opened.
Let's make and example:
the server has a LAN IP 192.168.0.2, the software will create a tunnel and give it a second IP 192.168.100.1
the RPi has a LAN IP 192.168.0.200, the software will create a tunnel and give it a second IP 192.168.100.2
Now when the server opens SSH on 192.168.100.2 the RPi receive the packet, and it will open its loopback 192.168.100.2:22, and tunnel it back to 192.168.100.1.