If I was sitting at the remote pi, yes I would be able to configure the router through a web interface. The remote router does not accept a local or remote ssh connection.1) You have ssh access to the remote RPi. Does the RPi have administrator access to its local router? Because if so you could use that to modify the port forwarding configuration of the router.
This looks more promising - I'm not sure of the specifics of what you're suggesting, but I will Google around and try to figure it out.2) Again using the ssh connection to the remote RPi. Run an XWindows server on your local (where you are now) workstation, and enable X-windows forwarding on the ssh connection. Now you can start a browser on the remote RPi and have it rendered on the display in front of you. Then you can access the target web application from the browser simply accessing what it thinks is its localhost.
Just a variation on Idea 2. Get a browser running on the remote RPi, then use that to browse to the 'local' Admin Interface of the 'remote' router.If I was sitting at the remote pi, yes I would be able to configure the router through a web interface.
"Weaved" looks really interesting.Another possible solution, if the remote RPi has unfettered outbound access to the internet, is to use a third-party 'reverse ssh tunnel' service such as those offered by Weaved or Dataplicity.
Code: Select all
timeout 600 ssh -R local_ssh_server_ip:8765:remote_router_local_ip:80 user@local_ssh_server.com &
An SSH Tunnel would probably achieve what you want. For the Linux SSH client something like "-L 8080:localhost:80" on the command line would set it up, From putty use something like 8080 as source port and localhost:80 as the destination. This will make the ssh session listen on the local port (8080) and then connect to the remote part (localhost:80) from the other end. You can then point your browser at localhost:8080 to connect to the remote webserver.wgcampbell wrote: ↑Wed Nov 15, 2017 6:45 pmI have a remote server on a remote network in a vacation house location. The router is presently forwarding port 8765 to port 8765 on a remote network pi. The sshd daemon on the pi is set up to accept both port 22 & 8765 connections.
On the above remote network pi, there is a web application I'd like to access. Port 8765 is the only port I have forwarded on the router and I do not have remote access to the router. Also it is many miles away and not possible (at this time) to access it locally.
Is there a way I could set up a temporary redirection (port 8765 to 80) on my remote network pi to allow me to use my remote pi web application?
Users browsing this forum: No registered users and 10 guests