Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Issues with incoming magic packet from LAN
« previous
next »
Print
Pages: [
1
]
Author
Topic: Issues with incoming magic packet from LAN (Read 1595 times)
jpfeifer14
Newbie
Posts: 10
Karma: 0
Issues with incoming magic packet from LAN
«
on:
May 05, 2023, 10:07:26 am »
Im pretty new to opnsense and Im trying to set up teamviewer to WoL. Ive had this working in the past when I was on a tplink router, but now im running into some issues. I was able to test the magic packet and see that the PC is receiving it on LAN to LAN connections, but even with a port forwarding rule in opnsense, the packet never makes it to the PC. Is there something else that must be enabled or allowed in the firewall?
Logged
sphbecker
Newbie
Posts: 14
Karma: 2
Re: Issues with incoming magic packet from LAN
«
Reply #1 on:
May 06, 2023, 04:33:17 am »
My guess is that the magic packet is failing to be forwarded to a specific IP address because an offline system doesn’t have its IP stack running, meaning it can’t respond to ARP requests. You typically get around this issue by sending the packet to the broadcast address (192.168.1.255) instead of the actual IP. That should blast the packet to all systems, but because the magic packet contains a target mac address, will only wake the desired system.
That is how it should work, however I am running into a similar issue where OPNsense doesn’t seem to honor broadcast addresses as expected. In my case, I am not using NAT, but the idea is the same. I’m curious if port forwarding to the broadcast address works, please let me know.
Logged
jpfeifer14
Newbie
Posts: 10
Karma: 0
Re: Issues with incoming magic packet from LAN
«
Reply #2 on:
May 08, 2023, 12:51:17 am »
I will try that and let you know, but I will add that this was previously working with no changes to the offline system on a TP-link router. I don't really know if that gives and extra insight, as I am just learning all of this, but the setup has always had software and NIC WoL turned on, and was previously working with just a port forward rule in the old system. Currently I can use wake-on-lan monitor on the system while it is online and see that local magic packets from another machine on the same network make it to the machine, they just never make it through externally.
Logged
jpfeifer14
Newbie
Posts: 10
Karma: 0
Re: Issues with incoming magic packet from LAN
«
Reply #3 on:
May 08, 2023, 02:32:16 am »
Interesting thing is, I dont even see an entry for inbound WAN traffic on that port, or any port I set for WoL. I know inbound on that ip (or url) works because other traffic comes through, but there is never a log entry when the magic packet is sent.
Logged
jpfeifer14
Newbie
Posts: 10
Karma: 0
Re: Issues with incoming magic packet from LAN
«
Reply #4 on:
May 08, 2023, 02:59:22 am »
It appears to have been fixed. I think there was a static IP but not Static ARP
Logged
sphbecker
Newbie
Posts: 14
Karma: 2
Re: Issues with incoming magic packet from LAN
«
Reply #5 on:
May 08, 2023, 04:20:02 pm »
Keep in mind that "Magic Packet" can be sent directly as a layer-2 frame which cannot be routed, or a UDP:9 (or sometimes 7) packet which can.
It is important to understand how the magic packet is being sent. Most apps I have seen use UDP, but to be sure, start WireShart on the same subnet and filter for "WOL." Send the packet locally on that same network and see what shows up. If the destination is an IP address, then it is using UDP, if the destination is a mac-address, then it is not, and you would need to find another way to send the packet in order for it to be routable.
«
Last Edit: May 08, 2023, 04:23:43 pm by sphbecker
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Issues with incoming magic packet from LAN