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

    WOL over internet, pfsense support for "iproute2"

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    5 Posts 2 Posters 1.1k 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.
    • A
      alirz
      last edited by

      I currently run openwrt as my main router. looking to jump into the pfsense world. However one of my most needed feature is the ability to send wol paclets over the internet to my lan devices.
      with openwrt, i've been using that for several years. It requires two things.
      1- on openwrt i use the "ip neigh" command to a setup a static ARP entry, i believe thats what the following command does..
      ip neigh add 10.0.0.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br-lan

      2- setup port forwarding to forward the incoming wol packet from the WAN to the LAN, same broadcast address as above, and to the required WOL port e.g UDP 9.

      now looking through pfsense, #2 item should be achievable easily. However i cant see how to get #1 to work, given that "ip neigh" command, which i believe is part of "iproute2" package does not exist on pfsense/feebsd?

      This is a critical piece that would prevent me from switching over to pfsense. Would really like some input from the experts here.

      Thanks

      1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott
        last edited by

        Ummm... WOL is not IP and so doesn't normally pass over the Internet.

        Here's a Wikipedia article about what you want to do. How are you doing it with OpenWRT?

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        1 Reply Last reply Reply Quote 0
        • A
          alirz
          last edited by stephenw10

          I send a wol magic packet to my public IP address along with the destined MAC address.The router broadcasts it internally to a specific udp port on the broadcast address, again including the destined device MAC address, and the device wakes up.
          See https://wiki.dd-wrt.com/wiki/index.php/WOL

          Hmmm I notice that on that page, a new method has been listed using arp instead my “ip neigh” method. Perhaps I can implement that on pfSense,
          Thanks to your question, I visited that page and may have found an answer for myself.

          1 Reply Last reply Reply Quote 0
          • A
            alirz
            last edited by

            Well that didn’t work. Then I came across this thread where a user was able to set it up but I’m still having issues.

            https://forum.netgate.com/topic/30355/wake-on-wan/4

            Does anyone have experience with this? Thanks.

            A 1 Reply Last reply Reply Quote 0
            • A
              alirz @alirz
              last edited by

              Well i got it to work.

              installed package "ShellCmd". This package is to simply run the following command at every bootup of the router so that the arp entry is always there.

              shellcmd: command: arp -s 10.0.0.254 ff:ff:ff:ff:ff:ff
              where 10.0.0.254 is the broadcast IP of my network
              ff:ff:ff:ff:ff:ff is the MAC broadcast address. Use this as is!

              Finally setup NAT port forwarding to 10.0.0.254 and the port you want to use for WOL, eg UDP 9

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