On Mon, Oct 5, 2020 at 1:02 AM lexcorp <ricardoalx.pe...@gmail.com> wrote:
> Hi Nick > > A few things for you to check, here... > - Tomcat does not send the Wake-on-LAN packet, guacd does. That said > you've > posted guacd logs below. > > This is guacd log: > > guacd[13280]: INFO: Creating new client for protocol "rdp" > guacd[13280]: INFO: Connection ID is > "$1d35f762-d464-44d9-b71f-10ce76a72bb2" > guacd[13456]: DEBUG: Processing instruction: size > guacd[13456]: DEBUG: Processing instruction: audio > guacd[13456]: DEBUG: Processing instruction: video > guacd[13456]: DEBUG: Processing instruction: image > guacd[13456]: DEBUG: Processing instruction: timezone > guacd[13456]: DEBUG: Parameter "console" omitted. Using default value of > 0. > guacd[13456]: DEBUG: Parameter "console-audio" omitted. Using default > value of 0. > guacd[13456]: DEBUG: Parameter "disable-auth" omitted. Using default > value of 0. > guacd[13456]: INFO: No security mode specified. Defaulting to security > mode negotiation with server. > guacd[13456]: DEBUG: User resolution is 1600x740 at 96 DPI > guacd[13456]: DEBUG: Parameter "dpi" omitted. Using default value of 96. > guacd[13456]: DEBUG: Using resolution of 1600x740 at 96 DPI > guacd[13456]: DEBUG: Parameter "read-only" omitted. Using default value > of 0. > guacd[13456]: DEBUG: Parameter "client-name" omitted. Using default > value > of "Guacamole RDP". > guacd[13456]: DEBUG: Parameter "enable-wallpaper" omitted. Using default > value of 0. > guacd[13456]: DEBUG: Parameter "enable-theming" omitted. Using default > value of 0. > guacd[13456]: DEBUG: Parameter "enable-font-smoothing" omitted. Using > default value of 0. > guacd[13456]: DEBUG: Parameter "enable-full-window-drag" omitted. Using > default value of 0. > guacd[13456]: DEBUG: Parameter "enable-desktop-composition" omitted. > Using default value of 0. > guacd[13456]: DEBUG: Parameter "enable-menu-animations" omitted. Using > default value of 0. > guacd[13456]: DEBUG: Parameter "disable-bitmap-caching" omitted. Using > default value of 0. > guacd[13456]: DEBUG: Parameter "disable-offscreen-caching" omitted. > Using > default value of 0. > guacd[13456]: DEBUG: Parameter "disable-glyph-caching" omitted. Using > default value of 0. > guacd[13456]: DEBUG: Parameter "color-depth" omitted. Using default > value > of 16. > guacd[13456]: DEBUG: Parameter "disable-audio" omitted. Using default > value of 0. > guacd[13456]: DEBUG: Parameter "enable-printing" omitted. Using default > value of 0. > guacd[13456]: DEBUG: Parameter "printer-name" omitted. Using default > value of "Guacamole Printer". > guacd[13456]: DEBUG: Parameter "enable-drive" omitted. Using default > value of 0. > guacd[13456]: DEBUG: Parameter "drive-name" omitted. Using default value > of "Guacamole Filesystem". > guacd[13456]: DEBUG: Parameter "drive-path" omitted. Using default value > of "". > guacd[13456]: DEBUG: Parameter "create-drive-path" omitted. Using > default > value of 0. > guacd[13456]: DEBUG: Parameter "disable-download" omitted. Using default > value of 0. > guacd[13456]: DEBUG: Parameter "disable-upload" omitted. Using default > value of 0. > guacd[13456]: DEBUG: Parameter "timezone" omitted. Using default value > of > "America/Mexico_City". > guacd[13456]: DEBUG: Parameter "enable-sftp" omitted. Using default > value > of 0. > guacd[13456]: DEBUG: Parameter "sftp-hostname" omitted. Using default > value of "192.171.77.146". > guacd[13456]: DEBUG: Parameter "sftp-port" omitted. Using default value > of "22". > guacd[13456]: DEBUG: Parameter "sftp-username" omitted. Using default > value of "Sistemas". > guacd[13456]: DEBUG: Parameter "sftp-password" omitted. Using default > value of "". > guacd[13456]: DEBUG: Parameter "sftp-passphrase" omitted. Using default > value of "". > guacd[13456]: DEBUG: Parameter "sftp-root-directory" omitted. Using > default value of "/". > guacd[13456]: DEBUG: Parameter "sftp-server-alive-interval" omitted. > Using default value of 0. > guacd[13456]: DEBUG: Parameter "sftp-disable-download" omitted. Using > default value of 0. > guacd[13456]: DEBUG: Parameter "sftp-disable-upload" omitted. Using > default value of 0. > guacd[13456]: DEBUG: Parameter "recording-name" omitted. Using default > value of "recording". > guacd[13456]: DEBUG: Parameter "recording-exclude-output" omitted. Using > default value of 0. > guacd[13456]: DEBUG: Parameter "recording-exclude-mouse" omitted. Using > default value of 0. > guacd[13456]: DEBUG: Parameter "recording-include-keys" omitted. Using > default value of 0. > guacd[13456]: DEBUG: Parameter "create-recording-path" omitted. Using > default value of 0. > guacd[13456]: INFO: Resize method: none > guacd[13456]: DEBUG: Parameter "enable-audio-input" omitted. Using > default value of 0. > guacd[13456]: DEBUG: Parameter "gateway-port" omitted. Using default > value of 443. > guacd[13456]: DEBUG: Parameter "disable-copy" omitted. Using default > value of 0. > guacd[13456]: DEBUG: Parameter "disable-paste" omitted. Using default > value of 0. > guacd[13456]: DEBUG: Parameter "wol-wait-time" omitted. Using default > value of 0. > guacd[13456]: INFO: User "@0bcd2a6d-519c-4f03-871b-5cd36b793bc2" joined > connection "$1d35f762-d464-44d9-b71f-10ce76a72bb2" (1 users now present) > guacd[13456]: DEBUG: Client is using protocol version "VERSION_1_1_0" > *guacd[13456]: DEBUG: Sending Wake-on-LAN packet, and pausing for 0 > seconds.* > This would indicate that libguac is sending - or at least attempting to send - the WoL packet. There is other debug logging that takes place if errors occur attempting to send the packet, and you would see those errors, here. > guacd[13456]: INFO: Loading keymap "base" > guacd[13456]: INFO: Loading keymap "en-us-qwerty" > guacd[13456]: DEBUG: Support for CLIPRDR (clipboard redirection) > registered. Awaiting channel connection. > guacd[13456]: DEBUG: Support for static channel "rdpdr" loaded. > guacd[13456]: DEBUG: Support for static channel "rdpsnd" loaded. > guacd[13456]: DEBUG: Local framebuffer format PIXEL_FORMAT_BGRX32 > guacd[13456]: DEBUG: Remote framebuffer format PIXEL_FORMAT_RGB16 > *guacd[13456]: DEBUG: freerdp_set_last_error ERRCONNECT_CONNECT_FAILED > [0x00020006]* > *guacd[13456]: DEBUG: failed to connect to 192.171.77.146* > *guacd[13456]: DEBUG: SVC "rdpdr" disconnected.* > *guacd[13456]: DEBUG: SVC "rdpsnd" disconnected.* > *guacd[13456]: ERROR: Error connecting to RDP server* > *guacd[13456]: INFO: User "@0bcd2a6d-519c-4f03-871b-5cd36b793bc2" > disconnected (0 users remain)* > guacd[13456]: INFO: Last user of connection > "$1d35f762-d464-44d9-b71f-10ce76a72bb2" disconnected > guacd[13456]: DEBUG: Requesting termination of client... > guacd[13456]: DEBUG: Client terminated successfully. > guacd[13280]: INFO: Connection "$1d35f762-d464-44d9-b71f-10ce76a72bb2" > removed. > > > - The system running guacd must be on the same network segment as the > systems it is going to wake up, or you must do fancy network stuff in order > to forward the wake packet to the actual hosts that are being awakened. > This may already be the case in your environment, but you haven't provided > any detail about the configuration, so I'm just posting it to make sure > that's out there. > > *I configured Wake on Lan on a computer to allow sending the magic > package, I have tested that it works with an application from my mobile > device and also from another PC and it works correctly.* > > > Okay, is the computer you configured on the same network as the system running guacd? Have you tried using some other application from the system running guacd to send the WoL packet to see if the packet is being sent/generated correctly from the guacd system and can successfully wake the computer? I know that you've set it up on a different system, but you should try it from the same system running guacd just to make sure that it works from that specific system. > - Not sure if you're running guacd in Docker or not, but, if you are, there > are additional things to consider regarding how you attach the guacd > container to the network and send the packets. > > *I don't running guacd in Docker* > > - If you have any firewalls, including host-based firewalls, you need to > make sure the firewalls are configured properly. > *My firewall is cofigured properly* > > - Have you done any packet sniffing to see if the magic packet is going > out? > *I don't know how make this...* > > > You can use tcpdump (yum install tcpdump) to sniff traffic on the system running guacd and filter for the wake-on-lan packet to see if the packet is going out correctly and has the correct contents. https://unix.stackexchange.com/questions/506582/how-to-capture-wol-packets -Nick