swsnr / turnon

Turn on devices in your local network
https://flathub.org/apps/details/de.swsnr.turnon
Mozilla Public License 2.0
4 stars 2 forks source link

Remote hosts WoL through SSH tunnels #5

Closed nekohayo closed 3 days ago

nekohayo commented 5 days ago

Hi! This is a dream app for me, but it currently only does one half of what I'd want.

The other half that would make it a truly magical app would be the ability to configure some preset remote hosts to wake over a remote LAN, i.e. by having it tunnel to somewhere else (ex: a router that runs Tomato or OpenWRT, or some server accessible to you through firewall port forwarding), so that it can send the WoL network packets through that remote network (even better if it can scan/discover on that remote network).

It would be much more convenient than these steps I currently have to do:

  1. manually establish a SSH tunnel in a terminal,
  2. open a web browser,
  3. enable the SOCKS proxy setting in the browser,
  4. type the remote local IP of the router
  5. log into the router
  6. navigate to the WoL page
  7. select the device to wake

My hope would be that I could simply tell the app the location of a SSH tunnel host (ex: the router) from which it would emit the magic packet.

Being able to wake hosts across NATted Internet is extremely useful for family computers maintenance, or to wake your suspended workstation when you're away from home and want to access/sync some of its files over SFTP or connect to it with remote desktop.

I hope you will find this general feature suggestion worth having as part of the scope of this app :)

swsnr commented 3 days ago

I can see why this would be useful, but it's also a lot of work, with a lot of open questions concerning the design and the implementation, so realistically it's quite unlikely that I'll ever find time to address this, less so given that I neither need this myself, nor have a setup where I could test this (easily).

As such, I'm sorry, but I'll close this as "not planned".

However, any pull request in this direction would be welcome, of course.