Accessing multiple webpages through SSH Tunnel/Proxy/Port Forward?

Accessing multiple webpages through SSH Tunnel/Proxy/Port Forward?

avatar

I'm having some trouble hammering down the correct configuration for my use case: I have a remote device that hosts a web-based management tool for multiple devices that have their own local configuration webpages. I can access this management tool from my computer, but not the managed devices (which are linked out from the management tool).

Ideally, I could access this management tool from a Website entry in RDM (simple), but I'd also like to be able to open the individual device configuration pages as tabs in RDM. Is there a way to accomplish this? Maybe it's out of scope for the tool (since the device IP addresses would need to be translated into localhost:port)?

I'd also be fine adding the device configuration pages as separate entries in RDM, so long as it would be reasonably easy to add new ones (with all tunnel/forwarding configuration inherited and only needing to add the device IP in the new entry).

All Comments (3)

avatar

Hello,

Thank you for reaching out to Devolutions Support.

I believe you can achieve your goal by using an SSH tunnel.

The first step is to create a new entry in RDM using the SSH Tunnel entry type. Once created, configure the connection settings, save the entry, and test it by launching the tunnel.

After confirming the tunnel is working correctly, you can create your Website entries. In the Website entry, you should see a VPN / Tunnel / Gateway tab on the left. From there, you can link the SSH tunnel you previously configured.

That should get you up and running.
Feel free to give it a try, and let me know if you run into any issues.

Best regards,

Jacob Lafrenière

avatar

I'm able to create an SSH Tunnel, but unsure how to configure it for this use case. Is the mode Local/Remote/Dynamic? What is my local address vs remote host?

This command allows me to open one of the device management pages via 127.0.0.1:8192, but only the one: ssh -L 8192:<REMOTE_DEVICE_IP> user@<MANAGEMENT_SERVER_IP>

I can define multiple remote device IPs (on different ports) using the SSH Port Forward item in RDM and it works when running it manually, but fails to connect when used as part of the VPN/Tunnel/Gateway configuration on a Website item.

avatar

Hello,

Thank you for the follow-up.

I believe the following documentation articles may be helpful:

  • https://docs.devolutions.net/rdm/kb/how-to-articles/configure-secure-gateway/#configure-the-target-machine-session
  • https://docs.devolutions.net/rdm/kb/knowledge-base/entry-settings/ssh-tunnel-entry-settings/


Could you please review them and let me know if you have any further questions?

I look forward to your reply.

Best regards,

Jacob Lafrenière