3

Not sure if this can be done but here goes.

What I want to acheive is this, a user on a laptop can view a router web page that is on another PC (client), the route to this client is via another PC (Server).

So the connection is from Laptop to server to client, to add to the complication the client PC internet provider blocks all incomming requests so cannot use port forwarding on the clients router, to overcome this I use reverse ssh tunnel on the client to the server so the server browser can view the clients router web page - so far so good.

What I want to do now is connect the laptop to the server by another internet connection and forward the client's router web page to the laptop.

I have played around with NAT on the server but doesn't seem to do what I want.

Can this be done?

Paul.

Pauls
  • 33

1 Answers1

0

It can be done with SSH Port Forwarding.

This command will redirect any connection attempt at $SERVER:10000 to $DEVICE:80.

client$ ssh -R 10000:$DEVICE:80 $SERVER

where $SERVER may as well be a local IP address. $DEVICE may be any name or address identifying the device from the client's point of view.

wnrph
  • 3,715
  • 1
  • 28
  • 39