![]() ![]() If you're using Ubuntu, we'll need to create a system service: sudo nano /etc/systemd/system/rviceĪgain, don't forget to replace eth0 with whatever network adapter you're using.Įnable the service: sudo systemctl enable rvice Just create a user script with the following content and set it to run "At startup of array" (make sure you have the array set to always start): #!/bin/bash If you're using unRAID, this easily handled with the User Scripts plugin. ![]() Now, there's an unpleasant little "feature" in OS's where the above setting gets reset after every reboot. Create the script to insure that WOL is always enabled: Enable the system for Wake-On-LAN: sudo ethtool -s eth0 wol gĭon't forget to replace eth0 with the adapter you're using if you have a different one.Ħ. This varies from motherboard to motherboard but almost all have this setting so look for it.ĥ. N.B.: If you don't see it, all hope is not lost, you may just need to enable "Wake-On-LAN" in the BIOS. ![]() We really only care to see that this line contains a "g", indicating a that it will accept a "magic packet" (the mechanism by which wake-on-LAN works). If WOL is available on your card, you should see a line that appears as so: Supports Wake-on: pumbg In my case that command would be: sudo ethtool eth0 Check to see if wake-on-LAN is available on your NIC with ethtool: sudo ethtool That's your MAC address and that's how we will ultimately address the server when we are ready to wake it up.Ĥ. While you're here, record the address next to ether (highlighted above). If you need help with this, feel free to ask me in the comments/forum.ģ. In my case, eth0 is the network adapter in use, and chances are it probably is for you too. You can also look at which network adapter has had traffic go through it (the RX and TX packets line will have non-blank values): If you need help figuring out which network adapter you are currently using, look for the one with an IP address assigned. If you don't already have ifconfig, you can install it with: sudo apt install net-tools Find the name of the network adapter you are currently using with the following command: ifconfig It is also used to enable wake-on-LAN on Ubuntu.Ģ. On your server, install ethtool: sudo apt install ethtoolĮthtool allows us to verify that our NIC can support wake-on-lan. Let's begin! Enable Server for Wake-On-LAN (WOL):ġ. Today's tutorial will focus on precisely that: enabling our servers to be woken up on LAN, and configuring our RPi sleeper cell to wake those servers up. That's useful by itself, especially as a backup if our normal route of access (VPN) is down, but we can also use that same reverse SSH tunnel to do some other incredibly useful things such as waking up other devices on the network with wake-on-LAN (WOL). Previously, we set up a Raspberry Pi to allow us to remote into our network via a reverse SSH tunnel. Today, we continue our series on readying the homelab for unattended access. A complete tutorial on wake-on-LAN (WOL) with a reverse SSH tunnel using nothing more than a Raspberry Pi. Start your unattended server wherever you are in the world over the internet. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |