Sign inSign up

waazaafr/proxy-wol-redirect

By waazaafr

Updated about 2 years ago
Archived

Visit URL > Wake up machine > Redirect to another URL

Image
Developer tools
0

1.2K

waazaafr/proxy-wol-redirect repository overview

Source: https://github.com/waazaa-fr/Proxy-Wol-Redirect

=============================================================================

This image provides PWR, a way to wake up machine hosting web services before requesting those services.

You need to run this container on "host" mode for correctly sending the magic packet.

Environnement Variables

SERVER_PORT

The listening port waiting the initial HTTP request

TIMEOUT

Delay before timeout

MAC

The target MAC Address of the target machine

REDIRECT

The redirect URL when machine is awake.

SSL_VERIFY

To accept all ssl certificate without verification set this environment variable to "False". Usefull for self signed certificate - thx sjung87.

docker run -d \
                --name pwr \
                --restart unless-stopped \
                -e TZ=Europe/Paris \
                -e SERVER_PORT=8565 \
                -e TIMEOUT=120 \
                -e MAC=52:54:00:42:35:5C \
                -e REDIRECT=http://your.awaken.service \
		-e SSL_VERIFY=False \
                --network host \
                waazaafr/proxy-wol-redirect:latest

USAGE

As an example:

  • the host running this container has ip 192.168.1.40.
  • i set 8565 as SERVER_PORT
    • i set the MAC address of the target machine i want to wake up
  • i set the webui of the service this target machine offer when awake. Ex: http://192.168.1.50
  • If is sent SSL_VERIFY=False there is no verification of https certificate

Result:

When i go to http://192.168.1.40:8565:

  • the magic packet is sent to the target machine MAC address
  • waiting until TIMEOUT for wake up
  • when wake up the HTTP request is redirected to http://192.168.1.50

Feel free to join me on https://discord.gg/p9xkjEw8ts⁠⁠

If you like this, consider buing me a coffee: https://buymeacoffee.com/waazaa⁠⁠

If you need an UnRAID license follow this link: https://unraid.net/pricing?via=4c3f80⁠⁠

If you need a good VPS: https://rarecloud.io/clients/aff.php?aff=694⁠

Tag summary

Content type

Image

Digest

sha256:8438691d0

Size

49.7 MB

Last updated

about 2 years ago

docker pull waazaafr/proxy-wol-redirect