An open API service indexing awesome lists of open source software.

https://github.com/jamezrin/wol-packet-replicator

A python script that listens for UDP wake on lan packets from outside the network and forwards it to the broadcast address
https://github.com/jamezrin/wol-packet-replicator

lan proxy python python-script raspberry-pi replicator router wake-on-lan wakeonlan

Last synced: 12 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](http://www.wakeonlan.me/index.php)
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](https://github.com/jaime29010/wol-packet-replicator/blob/master/settings.py#L7-L11) 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