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

Malformed wol packets

Scheduled Pinned Locked Moved Firewalling
wolwake on lan
22 Posts 8 Posters 3.5k 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
    AceFloof
    last edited by Oct 7, 2019, 2:56 PM

    Hey everyone!

    Well, after an hour of fiddeling around with the settings on my PC to try to get it workling with pfSense's integrated wake on lan functionallity
    I found out (with wireshark) that the magic packages that pfsense sends are presumably invalid.

    To confirm this I simply tried a generic wake on lan app on my phone and it instantly worked.

    (192.168.5.1 is pfsense, .5.81 is the phone and .5.7 the PC)
    alt text

    So, something arrives at my PC every time I click on the wake button in pfsense, but it's malformed.

    Can anyone confirm this, is it a known problem or is it just my system? Because I didn't find any info so far...
    (When searching for wol problems with pfsense most results are about wrong settings on the target device)

    Thanks in advance!

    1 Reply Last reply Reply Quote 0
    • S
      simon.lock
      last edited by Dec 20, 2019, 11:11 PM

      I'm experiencing exactly the same problem.

      1 Reply Last reply Reply Quote 0
      • S
        simon.lock
        last edited by Dec 21, 2019, 8:24 PM

        Did you get anywhere with this? I'm still experiencing the same problem. I raised a bug with pfsense but it was quickly rejected by Jim Pingle; stating it must be a problem with something on my local environment interfering. Perhaps we are using similar equipment? I'm using a unifi ap and unifi managed switches. However, I also receive corrupted packed when only using pfsense wired directly into my Windows 10 PC which should eliminate my unifi equipment. I think my pfsense may have become corrupt?

        J 1 Reply Last reply Dec 22, 2019, 2:43 AM Reply Quote 0
        • J
          JKnott @simon.lock
          last edited by Dec 22, 2019, 2:43 AM

          @simon-lock

          Try using Packet Capture to see what's being sent. Download the capture, so you can view it in Wireshark.

          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...

          S 1 Reply Last reply Dec 22, 2019, 8:57 AM Reply Quote 0
          • S
            simon.lock @JKnott
            last edited by Dec 22, 2019, 8:57 AM

            @JKnott
            Thanks for your reply. I've already used Wireshark and I'm getting the same results as posted by @AceFloof .

            When issuing a wol command from pfsense to a pc running wireshark (directly cabled and not via a switch) the corrupted message received displays the following:

            protocol: ? KNX/IP Unknown service family
            Info: ? Unkown service family

            The same results results are obtained when doing a packet capture from pfsense itself.

            1 Reply Last reply Reply Quote 0
            • N
              NogBadTheBad
              last edited by Dec 22, 2019, 11:30 AM

              Same here but it is waking the remote host.

              Screenshot 2019-12-22 at 11.21.11.png

              Screenshot 2019-12-22 at 11.22.05.png

              packetcapture.cap

              Andy

              1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

              1 Reply Last reply Reply Quote 0
              • N
                NogBadTheBad
                last edited by NogBadTheBad Dec 22, 2019, 11:43 AM Dec 22, 2019, 11:41 AM

                Disable KNX/IP in Wireshark.

                Screenshot 2019-12-22 at 11.40.02.png

                Screenshot 2019-12-22 at 11.40.48.png

                The ethertype and port would appear to be wrong.

                https://wiki.wireshark.org/WakeOnLAN

                Andy

                1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                J 1 Reply Last reply Dec 22, 2019, 12:05 PM Reply Quote 1
                • S
                  simon.lock
                  last edited by Dec 22, 2019, 11:52 AM

                  Thank you so much for your reply. Disabling KNX/IP in Wireshark then revealed correctly formed packets. So I guess my system isn't corrupted. Using the capture feature which is built into pfSense will always show malformed packets.

                  1 Reply Last reply Reply Quote 0
                  • J
                    JKnott @NogBadTheBad
                    last edited by Dec 22, 2019, 12:05 PM

                    @NogBadTheBad said in Malformed wol packets:

                    The ethertype and port would appear to be wrong.

                    WOL can be either UDP/IP or Ethertype 842. Either way it would use Ethernet II, not 802.3. However, the port is definitly wrong for UDP and wouldn't be used for Ethertype 842.

                    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...

                    N 1 Reply Last reply Dec 22, 2019, 12:10 PM Reply Quote 1
                    • N
                      NogBadTheBad @JKnott
                      last edited by Dec 22, 2019, 12:10 PM

                      @JKnott
                      Oops should have said or as per the wireshark capture filter:-

                      ether proto 0x0842 or udp port 9

                      Andy

                      1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                      1 Reply Last reply Reply Quote 0
                      • A
                        AceFloof
                        last edited by Feb 28, 2020, 1:12 PM

                        The point is not that I get malformed packages in Wireshark, the point is that I can't wake up my PC with the the pfSense WOL feature. It works with (almost) every random WOL app on my phone, tablet and laptop (which obviously sends some different kind of package than pfSense does). So this is definitely a pfSense problem.

                        J 1 Reply Last reply Feb 28, 2020, 1:46 PM Reply Quote 0
                        • J
                          JKnott @AceFloof
                          last edited by Feb 28, 2020, 1:46 PM

                          @AceFloof

                          What happens with the wol command at the command prompt?

                          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...

                          A 2 Replies Last reply Feb 29, 2020, 1:11 AM Reply Quote 0
                          • A
                            AceFloof @JKnott
                            last edited by Feb 29, 2020, 1:11 AM

                            @JKnott
                            When I issue "wol -i 192.168.5.255 40:8d:5c:56:e1:24" on my pfsense box I get the exact same packet as shown in my first post.

                            J 1 Reply Last reply Feb 29, 2020, 2:50 AM Reply Quote 0
                            • A
                              AceFloof @JKnott
                              last edited by Feb 29, 2020, 1:42 AM

                              @JKnott
                              Also, when I issue the "wakeonlan 40:8d:5c:56:e1:24" command on a debian machine I get the following correct packet in wireshark which actually wakes up my PC.
                              5e59c0ef0122f.png

                              N 1 Reply Last reply Jun 23, 2020, 12:55 AM Reply Quote 0
                              • J
                                JKnott @AceFloof
                                last edited by Feb 29, 2020, 2:50 AM

                                @AceFloof

                                Why are you including the broadcast IP address with the MAC? Whenever I used WoL, I just sent the MAC address. Here's the script I used to wake up a Netfinity server, which I just took to recycling this week.
                                /usr/bin/wol 00:02:55:47:E0:7B

                                BTW, I see you're using display filters in Wireshark, rather than capture filters. You may want to learn about capture filters, as they capture only the traffic of interest, where as display filters are used to select packets from what has been captured. If you don't use capture filters, you capture everything. I rarely use display filters, though I do have one to hide any packets containing the MAC of the computer I'm running Wireshark on. I do that to reduce the clutter.

                                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...

                                A 1 Reply Last reply Mar 6, 2020, 8:08 PM Reply Quote 0
                                • A
                                  alirz
                                  last edited by Mar 5, 2020, 4:50 AM

                                  i have no issues using WOL with my pfsense.
                                  i have wol working for multiple PCs over LAN and WAN.

                                  1 Reply Last reply Reply Quote 0
                                  • kiokomanK
                                    kiokoman LAYER 8
                                    last edited by Mar 5, 2020, 8:54 AM

                                    I haven't said anything so far, but wol work for me too on my pcs, sometimes i turn on my smart tv with that, the only thing that i'm unable to turn on with wol are virtual machine inside esxi. but that is another matter ..i have yet to investigate

                                    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                    Please do not use chat/PM to ask for help
                                    we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                    Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      AceFloof @JKnott
                                      last edited by Mar 6, 2020, 8:08 PM

                                      @JKnott
                                      that was just for testing purpose, usually I use the pfSense Webinterface (Services -> Wake-on-Lan) to issue the command but that leads to the same result.
                                      I'm just wondering why my Windows Machine won't turn on when I send the WoL command from the pfSense box when it seems to work for everyone else here.
                                      Also sending it from any other system/device in my network works fine for me (tested with my laptop and android phone). Everything but pfSense seems to be able to turn on my pc via WoL.

                                      Also ty for the info, def. looking into capture filters :)

                                      1 Reply Last reply Reply Quote 0
                                      • N
                                        NRgia @AceFloof
                                        last edited by NRgia Jun 23, 2020, 12:57 AM Jun 23, 2020, 12:55 AM

                                        @AceFloof said in Malformed wol packets:

                                        @JKnott
                                        Also, when I issue the "wakeonlan 40:8d:5c:56:e1:24" command on a debian machine I get the following correct packet in wireshark which actually wakes up my PC.
                                        5e59c0ef0122f.png

                                        Hello @AceFloof ,

                                        After trying to find what was 'knx/ip unknown service family' I was redirected to your post.

                                        Currently I'm using pfSense 2.5.0-devel and I have the same problem as you, as you can see:
                                        maqic packet.png

                                        All other devices and applications sends the correct magic packet on the port 9, pfSense sends it on port 40000.

                                        I have sent WOL packets from pfSense to Windows 10 and Manjaro Linux hosts, and none of them will wake up.

                                        I have APs from Unifi and Netgear switches on my Network, among other IOT stuff, and also VLANs.

                                        I'm trying to understand what we have in common, and if you solved the issue?

                                        1 Reply Last reply Reply Quote 0
                                        • johnpozJ
                                          johnpoz LAYER 8 Global Moderator
                                          last edited by johnpoz Jun 23, 2020, 1:34 AM Jun 23, 2020, 1:12 AM

                                          I just went over this not that long ago that pfsense sends out on 40k..

                                          https://forum.netgate.com/post/912917

                                          That you don't know how to use wireshark, doesn't mean the packet is malformed ;)

                                          I can tell wireshark anything is what its not and its going to show up as messed up...

                                          the correct magic packet on the port 9, pfSense sends it on port 40000.

                                          Where did you come up with the idea that port 9 is the correct port? Port means NOTHING in a wol packet.. what port it gets sent out in doesn't mean anything.. Sure there are some common ports 0, 7, 9 etc.. 0 is just going to be a security nightmare and wouldn't normally be allowed out from a firewall at all.. 7 and 9 have their own issues because old clients could see those since its sent to broadcast address, etc.

                                          Sure wireshark will see udp on 9 and think oh wol, and then decode it for that.. But again - what wireshark does for dissection of any given packet is ultimately up to the user using it.. If you say a packet is WOL and its NOT then it will show malformed, if you say its X when its Y, again malformed.. Wireshark tries and make a guess to what the data is - it quite often makes mistakes.. For example thinking your wol is knx..

                                          First thing that jumps out at me looking at that sniff - is wtf, they using a /15 mask?? WHY??? Your broadcast is 172.19.255.255 and your coming from a 172.18.0.12 - that is a /15.. Why would you be using that??? My guess why something isn't working is you prob have issues with your mask on your devices..

                                          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

                                          N 1 Reply Last reply Jun 27, 2020, 3:08 PM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received