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

    Wake on WAN work around issue

    Scheduled Pinned Locked Moved NAT
    5 Posts 3 Posters 2.3k 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.
    • S
      SickestGuy
      last edited by

      After Reading this topic. https://forum.pfsense.org/index.php?topic=33018

      This was the last message…

      Ok, I was able to figure it out.  It looks like other people have tried this before, and were unable to get it to work due to the fact that FreeBSD doesn't allow directed broadcasts.  What you need to do is install the ShellCmd package and add a command to add at bootup for a static ARP entry for the machine you want to wake up.

      The command is:

      arp -s IP Address MAC Address

      Then setup a UDP port forward for the WOL packet.  The destination IP should be the IP address of the machine you are waking up.  The destination port should be the port your WOL client uses.

      Thanks to the following sources for helping me figure it out.  Hope this helps others.

      I don't quite understand his instructions. Did I miss something?

      1. Install ShellCMD Package.

      2. arp -s IP Address MAC Address

      3. In Firewall > Nat > Add

      4. UDP, Redirect Target IP > LAN IP of PC, Destination Port Range & Direct Target Port > Port that is forwarded. Which is the port my phone app uses.

      What else did I miss? When he says destination IP, is that different than Redirect Target IP?

      Has anyone actually tried this?

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        So did you verify on pfsense that is lists this mac in your arptable and and its on the correct interface?

        You know another option would be to just vpn to your pfsense and then using the gui of pfsense send a WOL.

        arpstatic.png
        arpstatic.png_thumb

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • S
          SickestGuy
          last edited by

          @johnpoz:

          So did you verify on pfsense that is lists this mac in your arptable and and its on the correct interface?

          Yes, it's on my ARP Table. IP Listed and the mac address is on the LAN interface.

          @johnpoz:

          You know another option would be to just vpn to your pfsense and then using the gui of pfsense send a WOL.

          Got a step by step instructions on how to do so?

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            Did you setup vpn into pfsense?

            You can click on any device that ever got a dhcp from pfsense and make wol entry - just click the button.

            Do you really need a step buy guide for clickity clickity?  Both in the vpn setup and the add WOL..

            Run the wizard on openvpn. click the wol button in your leases..  Do you need a guide for how to connect to the webgui?

            vpnwol.png
            vpnwol.png_thumb

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • N
              NOYB
              last edited by

              It is so much easier than all that.

              Part 1:
              Go to Services DHCP Server and scroll to the bottom.

              Add a DHCP Static Mapping for the device.  While doing so, in the Edit static mapping page select the "ARP Table Static Entry" option.  Not to be confused with the "Static ARP" option on the main Services DHCP Server page.

              That will cause an ARP table static entry to be created and will survive reboots, updates, etc. because it is saved in the config.

              Part 2: (optional)
              To forward WoL packets through the NAT from the outside.  Create a static mapping for MAC FF:FF:FF:FF:FF:FF with an IP address of something like maybe 192.168.1.254 for example.  Because *.255 (broadcasts) won't be forwarded.  But *.254 will be.

              See screen capture attachments.

              With this set up WoL magic packets sent to the WAN address on the specified UDP port are forwarded as a broadcast on the LAN.

              Restriction to trusted source addresses and networks is highly recommended.

              Snap1.jpg
              Snap1.jpg_thumb
              Snap2.jpg
              Snap2.jpg_thumb
              Snap3.jpg
              Snap3.jpg_thumb
              Snap4.jpg
              Snap4.jpg_thumb

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