Wakezilla π¦
β‘ Wake-on-LAN made simple β power on your machines remotely whenever needed.
π Reverse proxy β intercepts traffic and wakes the server automatically if itβs offline.
π Automatic shutdown β saves energy by powering down idle machines after configurable thresholds.
Web interface
Features
- Wake-on-LAN: Send magic packets to wake sleeping machines
- TCP Proxy: Forward ports to remote machines with automatic WOL
- Web Interface: Manage machines, ports, and monitor activity through a web dashboard
- Automatic Shutdown: Automatically turn off machines after inactivity periods
- Network Scanner: Discover machines on your local network
Installation
Install from source
-
Install Rust:
| -
Build and Install:
-
Verify Installation:
Run proxy server
-
Run the Server:
By default, the web interface runs on port 3000.
Run Client
-
Run the Server:
By default, the web interface runs on port 3001. You can check the health of the client server by visiting: http://:3001/health
Usage
Web Interface
Access the web interface at http://<server-ip>:3000 to:
- Add and manage machines
- Configure port forwards
- View network scan results
- Send WOL packets manually
- Configure automatic shutdown settings
Adding Machines
- Navigate to the web interface
- Click "Add Machine" or use the network scanner
- Fill in MAC address, IP, and name
- Configure:
- Turn-off port (if remote shutdown is needed)
- Request rate limiting (requests per hour and period minutes)
- Port forwards as needed
Configuring Automatic Shutdown
- When adding or editing a machine, enable "Can be turned off remotely"
- Set the "Turn Off Port" (typically 3001 for the client server)
- Configure rate limiting:
- Requests per Hour: Number of requests allowed
- Period Minutes: Time window for rate limiting
- The machine will automatically shut down after the configured inactivity period
Port Forwarding
- Add a machine to the system
- Configure port forwards for that machine:
- Local Port: Port on the server to listen on
- Target Port: Port on the remote machine to forward to
- When traffic hits the local port, the machine will be woken up if needed and traffic forwarded
Machine Configuration
Each machine can be configured with:
- MAC Address
- IP Address
- Name and Description
- Turn-off Port (for remote shutdown)
- Request Rate Limiting:
- Requests per Hour: Maximum requests allowed
- Period Minutes: Time window for rate limiting
- Port Forwards:
- Local Port: Port on the server
- Target Port: Port on the remote machine
How It Works
- Server Mode: Runs the web interface and proxy services
- Client Mode: Runs on target machines to enable remote shutdown
- WOL Process:
- When traffic hits a configured port, the server sends a WOL packet
- Waits for the machine to become reachable
- Forwards traffic once the machine is up
- Automatic Shutdown:
- Monitors request activity for each machine
- After configured inactivity periods, sends shutdown signal
- Uses HTTP requests to the client for shutdown
Security Considerations
- The server should be run on a trusted network
- Access to the web interface should be restricted if exposed to the internet
- The turn-off endpoint on clients should only be accessible from the server
Development
Prerequisites
- Rust and Cargo installed
- Clone the repository
- Install dependencies with
make dependencies
on frontend folder run:
this will initialize the frontend in watch mode on port 8080
on the root folder run:
this will initialize the backend in watch mode on port 3000
Troubleshooting
Common Issues
-
Machine not waking up:
- Verify the MAC address is correct
- Ensure WOL is enabled in the machine's BIOS/UEFI
- Check firewall settings on the target machine
- Verify the target machine supports WOL
-
Proxy not working:
- Check that the target port is correct
- Verify the machine is reachable after WOL
- Ensure no firewall is blocking the connection
-
Automatic shutdown not working:
- Verify the turn-off port is configured correctly
- Ensure the client is running on the target machine
- Check that the client can receive HTTP requests from the server
Logs
Check the terminal output for detailed logs about:
- WOL packets sent
- Connection attempts
- Proxy activity
- Shutdown requests
- Errors and warnings
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run
cargo fmtandcargo clippy - Commit your changes
- Push to the branch
- Create a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.