Skip to main content

A simple magic packet forwarder

Project description

Pisten

Pisten (Pi + Listen) is a simple port listener that will forward valid wake-on-lan packets to the broadcast IP address. Pisten is best suited for use on always-on, low-power devices, such as the Raspberry Pi.

Some routers do not allow port forwarding to the broadcast IP address which necessitates the use of this program. Also, it is generally safer to filter out unwanted packets before forwarding to the broadcast IP.

Installation

You can install pisten as a python package:

python3 -m pip install pisten

Or you can clone this repository:

git clone https://github.com/davidpratt512/pisten

Usage

On linux, you can use

nohup pisten &

to run the server. By default, the server listens on port 1729 and forwards to 255.255.255.255:9.

You can specify what port to listen to and what IP address/port to forward to:

pisten -L 3141 -F 0 -I 127.127.127.127

In this case, we are (-L)istening on port 3141, (-F)orwarding to port 0 and (-I)P address 127.127.127.127.

Set up port forwarding

All routers can be configured to forward packets from specific ports to specific devices on your network. You will want to forward a public UDP port of your choice to port 1729 (or whatever port you specify) of the IP address of your server. You may want to consider creating a DHCP reservation for your server as well.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pisten-0.2.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

pisten-0.2.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pisten-0.2.1.tar.gz.

File metadata

  • Download URL: pisten-0.2.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pisten-0.2.1.tar.gz
Algorithm Hash digest
SHA256 85eafad68fc393186250545a06c302deeb2974b2697c405798ed57fec6a27c4f
MD5 6f7d52fb7a57955e2e1224c571f2ddb5
BLAKE2b-256 ba4483d978a9d776080f9ea33c2c9b8764dc63ac4bbdcb15859e993368de9e6e

See more details on using hashes here.

File details

Details for the file pisten-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pisten-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pisten-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 326e67f9cc2daf85254b33b5b4a8475356be9d5dae4a97065345b4d4fb0d453d
MD5 5e1adc3d26a9177a36fde52a4badf7fb
BLAKE2b-256 c4396ed1e741ffbddae15bf28c561501f5f21ee0c2afc33bea5c62d441aeefcb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page