So I want to setup a remote backup location at my parents house although they are very mindful about there electricity usage and environmental impact (and so am I) so I don’t want to have to have a pc always on when it doesn’t need to be.

Is it possible to setup remote Wake-on-lan so I can schedule my homelab at my place to wake up the server at my parents house and start a backup like once a week, I want to do this in a secure fashion as well so ideally no port forwarding, I currently use cloudflare tunnels for my home network.

Are there any other options or do you have a similar setup at your place?

  • Brickfrog@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    2
    ·
    17 hours ago

    Wake on LAN is a LAN feature, not WAN, so you’d need to issue that over the local LAN there at the house. You’re going to have a hard time trying to get that working over the WAN (if that’s even possible).

    The other comments mentioning a scheduled boot would be a much easier/simple solution if it works for you.

    But I’ll throw this in, the super basic least tech solution to this is to open a port forward to the house’s network router. Yes, I know you don’t want to do that, but it’s probably the only network device at that house that’s actually on 24/7 right? And by all means lock it down however you like. My simple method is to open the router login to a non-standard port number, with a IP whitelist, add my own home IP address to that IP whitelist, and bam you now have access to that remote home’s router for just your IP address. Log in remotely, issue a wake on LAN via the router’s own web ui, done.

    It’s perfectly reasonable to make this a bit more secure if you wanted but it gets slightly more complicated - open a non-standard port for SSH access to the remote router’s SSH port that only allows SSH login with key. Generate a SSH key and share that key with yourself, then you can log in remotely to that remote house via non-standard SSH port using the SSH key (no user/passwords). From there you’d have to see if you can issue Wake on LAN on the SSH command line, or set up a SSH tunnel from that remote LAN to yours so you can proxy into the router login page and do your Wake on LAN from there. … yes I realize this got complicated :/ But you’ve got a few things to explore given your patience for tinkering with this stuff :)

    Of course much of this relies on that house’s router having any of these features to enable and configure. The main takeaway here is that Wake on LAN requires something on 24/7 at that remote LAN for you to enable remote access into and issue a Wake on LAN command within that LAN. How to actually accomplish that is the tricky bit.

    • SteveTech@aussie.zone
      link
      fedilink
      English
      arrow-up
      4
      ·
      12 hours ago

      You’re going to have a hard time trying to get that working over the WAN (if that’s even possible).

      Wake on LAN is still encapsulated in an IP packet, so you can send it over the internet, and most WOL clients let you specify an IP. However your router will need to DNAT it to a broadcast address. Some routers have a check box for this (e.g. An ISP provided Technicolor router I have), some let you port forward to broadcast (e.g. Many routers, sometimes with workarounds), and some let you manually configure NAT (e.g. MikroTik routers).

      So it is possible, but forwarding public internet traffic to a broadcast address seems like a bad idea, and I wouldn’t recommend it. Why I know this: I used to do this in middle school, and it does work quite well.

      • rhelawyn@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        Well believe it or not, I used to do it too, by forwarding it directly to the lan host on port 9. No broadcasting required, just a regular UDP packet. I had a really shitty ISP router.

        Would have to try again but I’m almost certain it would work, as long as the computer’s MAC address is still in the router’s ARP table.