Skip to content

A python script that listens for UDP wake on lan packets from outside the network and forwards it to the broadcast address

Notifications You must be signed in to change notification settings

jamezrin/wol-packet-replicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wol-packet-replicator

A very simple python script that replicates the listens for UDP wake on lan packets from outside the network

This is a easy way of using Wake on Lan from outside the network when your router does not support forwarding ports to the broadcast address.
It also allows you to enforce the SecureOn if your NIC does not support it. I use it in a Raspberry Pi without running into any problems so far.

Usage

  1. Clone this repository: git clone https://github.com/jaime29010/wol-packet-replicator
  2. Run it directly: python replicator.py or in a background task (tmux, screen)

Configuring your router

For this to work at all you will need to allow the traffic to go to the device where this application is running.
It is recommended to do all of this:

  1. Assign a reserved IP address on your DHCP settings or configure the IP manually on the device
  2. Forward the local port (5009 by default) to the external port you want
  3. Setup dynamic dns, you can do this on your router if it supports it or in the same device

After you have done that, you can just send the WOL packet to the hostname and external port you chose.
You can test it with this tool
Check the output of the script or the app.log file to see the debug messages this prints

Enforcing SecureOn passwords

You can also add your own settings here as shown in the two examples. This is a great way of making sure only you can wake up your devices even if your NIC does not support SecureOn

About

A python script that listens for UDP wake on lan packets from outside the network and forwards it to the broadcast address

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages