Giter Site home page Giter Site logo

jamezrin / wol-packet-replicator Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 5.0 12 KB

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

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

wol-packet-replicator's Introduction

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

wol-packet-replicator's People

Contributors

jamezrin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.