0

If I have the setup given below, how do I access the devices (via SSH, http server, etc) on my home network from outside? (please assume that the devices that I want to access are Linux based)

Here's my setup diagram:

enter image description here

Basically to access anything at my home network, I have to traverse 2 NATs/routers, i.e. one at the "ISP router" and the other one at the "Home modem cum router" - and obviously, I have no permissions to change anything at the "ISP Router". So port forwarding from there is out of the question.

Is there any service that will let me:

  1. Install a client on my device (inside the home network)
  2. Also let me assign a URL for each device. Eg: device1.servicename.com, device2.servicename.com, etc..
  3. From outside, whenever I want to access the webserver I am running on device1, I can do http: //device1.servicename.com, or whenever I want to SSH into device1, I can simply connect to "device1.servicename.com:22", etc..

Any other alternate methods are also welcome!

Gareth
  • 19,080

1 Answers1

1

1 is easy. Simply run a ssh client on your network and use ssh -R to an external server in order to set up a remote tunnel into your network. 2 and 3 are trickier, since SSH doesn't have anything similar to HTTP's Host header; you'd need to use a ProxyCommand to bounce the external SSH client from your internal SSH client to the actual host.