Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    WOL Comand lLine

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 2 Posters 216 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      orphen76
      last edited by orphen76

      I'm using cron to schedule the awakening of some servers, but I can't send the correct string, I send (on cron, always pfsense) wol -i 192.168.1.0 MAC, but it doesn't work, if I use the pfsense wol service, instead it works without problems.
      Am I wrong to pass the string in cron? Yet I saw the guide to the freebsd command.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        That's the actual command you're using? It fails both in cron and from the CLI?

        In cron you need to use the full path to the command.

        Steve

        O 1 Reply Last reply Reply Quote 0
        • O
          orphen76 @stephenw10
          last edited by

          @stephenw10
          /usr/local/bin/wol -i 192.168.1.0 MAC, correct?

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            The actual IP address doesn't matter since the target doesn't have an IP at that time but it determines which NIC pfSense will send the packet from.

            Try it without specifying the host. Try it with verbose set.

            O 1 Reply Last reply Reply Quote 1
            • O
              orphen76 @stephenw10
              last edited by

              @stephenw10 Hi,
              by the command line i get , ok ( no error), but the host does not awake, If I sent the wol from pfsense interface( wol service) the host wake up, and work, but, by command line nothing...

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Ah you need to send it to the broadcast address: https://github.com/pfsense/pfsense/blob/RELENG_2_7_2/src/usr/local/www/services_wol.php#L51

                So: /usr/local/bin/wol -i 192.168.1.255 xx:xx:xx:xx:xx:xx

                [2.7.2-RELEASE][admin@t70.stevew.lan]/root: wol -vi 172.21.16.255 00:0e:8e:24:cd:0a
                Waking up 00:0e:8e:24:cd:0a with 172.21.16.255:40000...
                

                Works.

                O 1 Reply Last reply Reply Quote 1
                • O
                  orphen76 @stephenw10
                  last edited by

                  @stephenw10 I tried it, works!
                  Thanks a lot

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.