You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Nick Couchman (Jira)" <ji...@apache.org> on 2022/04/30 16:04:00 UTC

[jira] [Commented] (GUACAMOLE-1592) Wake-on-LAN via remote computer

    [ https://issues.apache.org/jira/browse/GUACAMOLE-1592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17530413#comment-17530413 ] 

Nick Couchman commented on GUACAMOLE-1592:
------------------------------------------

The only way to accomplish this today would be to run guacd on a remote computer within that network (the RPi). You can tunnel - either via SSH or just use the built-in support for SSL encryption in Guacamole - the connection between Guacamole Client and guacd - and then specify your remote guacd system for whatever systems are within that network. This would have several benefits, among them what you're looking for, here, in making it possible to send WoL packets to the remote network.

If you can't do that or don't want to, then maybe another option is to use a script or something with your SSH tunneling that will send the wake-up when the SSH tunnel is established. I think this is possible, though I don't know off the top of my head exactly how to do it, but SSH is very flexible, and it seems like something that could be gone in theory.

Another option that some people have used to try to "route" WoL packets is to have the router listen on a particular port and then re-broadcast the WoL packet to a network when it receives it on a certain port. It seems like this might be possible already with your SSH tunnel - if you add another port to your tunnel listening for those WoL packets and have the system re-send them, you could have the remote end of the tunnel re-broadcast the WoL packet. I would think some iptables (or nft) rules would allow this.

Aside from those options, I'm not even sure that there are code updates that would make this possible, at least not cleanly. We've considered making it possible to tunnel connections over SSH, and I think we'd eventually still like to implement that; however, you still have to have some way to execute a binary or script on the remote machine to send the WoL packets on the remote side - WoL packets are not route-able, so they have to be sent locally by something.

> Wake-on-LAN via remote computer
> -------------------------------
>
>                 Key: GUACAMOLE-1592
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1592
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-client, guacamole-server
>    Affects Versions: 1.4.0
>            Reporter: Felix Fischer
>            Priority: Minor
>
> I don't know if bug is the correct type of issue for my question, but I would like to be able to use the wake on LAN function, but relayed through another computer.
> I have guacamole running on a public VPS, however I use ssh tunnels to connect to my home machines. I have a Raspberry Pi that is always running and connected via ssh port forwarding, so it would be great if I could somehow use the pi to wake up my main machine when I try to connect to it.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)