Turn on your Server from anywhere!

  Рет қаралды 86,540

Christian Lempa

Christian Lempa

Күн бұрын

In this video, I'll show you how to configure Wake On LAN, a technology that uses a small packet sent over your network to power on your server or computer, even when it's powered off. I'll also explain how to enable Wake On LAN in both your BIOS and OS, as well as how to send the Magic Packet. Plus, I'll show you how to integrate Wake On LAN into Home Assistant and how to route it across networks. #techtutorial #homelab #wakeonlan
Related Videos/Links
Home Assistant Tutorial: • Home Assistant and Zig...
________________
💜 Support me and become a Fan!
→ christianlempa.de/patreon
💬 Join our Community!
→ christianlempa.de/discord
________________
Read my Tech Documentation
christianlempa.de/docs
My Gear and Equipment-*
christianlempa.de/kit
________________
Timestamps:
00:00 - Introduction
00:53 - Community Update
02:18 - How does Wake on LAN work?
05:35 - Enable WoL on Linux
10:57 - Create the magic packet
13:06 - What about routing?
16:28 - Set up WoL in HomeAssistant
________________
All links with “`*`” are and/or include affiliate links.

Пікірлер: 143
@olsenlid
@olsenlid 9 ай бұрын
Happy to see you back, Christian! Remember, if you don't have your health, all the money in the world won't matter. Mental health is important. Great to see you taking a step back, reflecting and being open about it, and coming back stronger! Wish you all the best for the future!
@Myuuiii
@Myuuiii 9 ай бұрын
Wake-On-LAN has been great for me for the exact same reason you said, saving power. I go between two houses so being able to turn it off and on without being there is so useful. Look forward to the rest of the video! 💖
@zyghom
@zyghom 2 ай бұрын
it is amazing that you spent 20 minutes on explaining rather than 1 minute on showing the commands - much appreciated ;-)
@GumShoeNoir
@GumShoeNoir 9 ай бұрын
Thanks Christian! How topical and timely! I'm glad you're back. I just implemented power monitoring of my servers using HomeAssistant with some Sonoff S31 mini plugs. I can't wait to enhance the UI with a power button. FWIW you can use the Sonoff to switch power but I disable this functionality so that I don't accidently power off a device when I'm blindly exploring wires and by invertedly power off a server without a proper shutdown.
@sekus
@sekus 9 ай бұрын
Welcome back! I am still trying to absorb all of your past videos. You have great content on your channel!
@demanuDJ
@demanuDJ 9 ай бұрын
Happy to have you back on youtube. Keep pushing forward Christian!
@jacobbrown1445
@jacobbrown1445 9 ай бұрын
Absolutely great video. Thank you for the in-depth explanation of this at the packet level. I’ve heard of this concept in other videos and now finally understand it fully
@lalala987
@lalala987 9 ай бұрын
Schön, dass du zurück bist! ❤ bitte geh es gemütlich an, kein Stress. Optimalerweise machst du nur so viel, wie dir spaß macht!
@biglipsadboi5475
@biglipsadboi5475 6 ай бұрын
I’ve literally spent a week trying to figure this out and this is the only video that properly explains and teaches, thanks so much
@christianlempa
@christianlempa 6 ай бұрын
Thank you! I'm glad it helped you :)
@jonathanchevallier7046
@jonathanchevallier7046 9 ай бұрын
Happy to see you back Christian. Thank you for this video.
@davemeech
@davemeech 9 ай бұрын
Welcome back! Awesome seeing a video from you again. The home lab itch is once again real.
@ChrisValcke
@ChrisValcke 9 ай бұрын
glad to see you back! great example of using HA to automate the Homelab
@AliCaliskan-km5jc
@AliCaliskan-km5jc 9 ай бұрын
Nice to see you back! Really missed your awesome content
@MrJackPL
@MrJackPL 9 ай бұрын
Home assistant part it is what I was looking for! Thank you! It will reduce my bills.
@vaster1142
@vaster1142 9 ай бұрын
I was so excited when I saw that you uploaded but I guess I'll come back for this when I finally have my server setup
@marsim4150
@marsim4150 9 ай бұрын
really happy to see you back 🙂
@ApexDesignsAU
@ApexDesignsAU 9 ай бұрын
Perfect timing! A few power outages have put me offline recently, glad I will be able to remotely boot back up!
@entropy_69
@entropy_69 9 ай бұрын
it's good to see you back, I hope you're doing well! :)
@Myektaie
@Myektaie 9 ай бұрын
Hi, its a beautiful day to see you back! 🎉 hope you had a good time off 😊
@patrickcasavant1044
@patrickcasavant1044 9 ай бұрын
Hey welcome back to your channel!! :) I hope everything is going well for you! VERY appy to see that you are back! Forget about all others youtuber, all your content is very is absolutely perfect!! You entertain us and help us enormously!! Wish you the best!
@deathpie5000
@deathpie5000 9 ай бұрын
I greatly appreciate all of your content ,I'm glad to see you're back. I would love to see more proxmox videos, maybe setting some up for use just like it was a normal desktop being able to KZbin with sound and everything, how to get on board graphics to pass through? Who knows, I love all your videos but when you can I'd love some proxmox :) I watched all the learn Linux TV but I'd still love some from you I think many would :) I know that you're very busy so only if you get time, keep going bud. You are amazing
@mason8714
@mason8714 9 ай бұрын
welcome back matey! good to see you online :)
@brodierobson4490
@brodierobson4490 9 ай бұрын
Welcome back! this is exactly what I was looking for to
@itssoaztek4592
@itssoaztek4592 9 ай бұрын
Excellent. Thank you so much!! The timing couldn't be better.
@zairahira3447
@zairahira3447 9 ай бұрын
Good to see your video after a long time Christian :)
@jorgegomez374
@jorgegomez374 9 ай бұрын
Glad your back my friend. Take care
@ash_lab
@ash_lab 9 ай бұрын
Happy to see you back Man !!
@drbyte2009
@drbyte2009 9 ай бұрын
Glad that you are back !!👍
@neodzen
@neodzen 9 ай бұрын
Glad to see your new video, Christian!
@aminebc8541
@aminebc8541 9 ай бұрын
Welcome back🎉🎉🎉🎉 we missed you, really happy to see you again😊😊😊
@diazrocks
@diazrocks 9 ай бұрын
awesome video man! great to see you back!
@ZeeKay80
@ZeeKay80 9 ай бұрын
Welcome back!! Missed your videos
@iongchihang5828
@iongchihang5828 9 ай бұрын
I just wanted to learn how to configure Wake on LAN in Homeassistant, then you uploaded this video🥰🥰
@christianlempa
@christianlempa 9 ай бұрын
Haha awesome timing bro 👊
@Psoewish
@Psoewish 9 ай бұрын
This is also really fun to enable on your actual desktop PC and setting up a trigger through say homebridge. Being able to turn my pc on and off whenever is so lovely, I even have it sync with my desk lamp depending on time of day.
@plagosus
@plagosus 9 ай бұрын
First, welcome back. I am glad that you feel like making videos again and that you enjoy it. Second, this is a great topic. Would watch with joy.
@cserajesh
@cserajesh 9 ай бұрын
Happry to see you back :) Good content
@accesser
@accesser 9 ай бұрын
Looking good man, welcome back hope you had a good break
@davidclark9173
@davidclark9173 9 ай бұрын
welcome back you were missed!
@romayojr
@romayojr 9 ай бұрын
i haven’t watched the video yet but welcome back christian!
@JavierPerez-fq2fi
@JavierPerez-fq2fi 9 ай бұрын
Welcom back Christian! Remember to take it easy after this time off, there is no hurry 😊
@mathesonstep
@mathesonstep 9 ай бұрын
Great video Welcome back
@kennethbudts105
@kennethbudts105 9 ай бұрын
Static arp entry on your router/fw to cross subnets would work as well. Thanks for the awesome content
@markloughtonUK
@markloughtonUK 9 ай бұрын
Perfect. I'll use it with the Work Day Integration and automate the startup so it doesn't turn on at weekends or holidays. Thanks !
@lukaswalker2342
@lukaswalker2342 3 ай бұрын
very helpful video love the in-detail explanations
@christianlempa
@christianlempa 3 ай бұрын
Glad it was helpful!
@lucaannuiti675
@lucaannuiti675 9 ай бұрын
Thank you for continuing sharing knowledge 👍
@vaster1142
@vaster1142 9 ай бұрын
Man resumed like he never left ❤❤❤❤
@hagner75
@hagner75 7 ай бұрын
Nice guide! One difference, at least for me, was that I had to reboot home assistant for it to pick up the entity.
@legendaryz_ch
@legendaryz_ch 9 ай бұрын
10:36 small addition: the seventh bit of the MAC-address indicates, wether the address is a globally unique address or a generated one: bit 0: unique, natural MAC address bit 1: generated address so for example 01:23:45:67:89:AB is natural while 03:23:45:67:89:AB has been created ~Tobi
@mauricetroisville646
@mauricetroisville646 9 ай бұрын
Willkommen zurück ❤ Ich weiß nicht ob du auch Inspiration durch User annimmst, aber ich fände es toll etwas über die Kombination von Teleport über Tailscale (oder auch andere Mesh-Networks) zu erfahren. 😊 Vielleicht hat ja auch ein anderer User hier Erfahrungen damit und hätte Lust mir ein bisschen Wissen weiterzugeben.
@eleuteriogarcia1225
@eleuteriogarcia1225 9 ай бұрын
As everyone's saying, I'm happy to see you here again! Willkommen zurück!
@mistakek
@mistakek 9 ай бұрын
Thanks. This was rather simple, and pfsense has wake on lan service. Now I don't have to walk across the room to turn on my test system when I want to try something on it. 🤣
@IJayJayI
@IJayJayI 9 ай бұрын
This is a wonderful video - great instructions. Another alternative is what I do is use govee smart plugs. After powering off pc safetly remotely i shut the power off in the govee app. In the bios of the server pc i make sure that power turns on when power is detected. So when i turn power back on on the govee smart plug my server will auto power on. Just another alternative :)
@rille47
@rille47 9 ай бұрын
Great video, I do magic packets and also use the lom interfaces eg. dell-idrac hpe-ilo supermicro-ipmi and send wake up and shut-down instructions via ssh and scripts.
@BGroothedde
@BGroothedde 9 ай бұрын
Awesome video. Do you have a video on your terminal configuration? I love the lines before each prompt
@patrickambrosso
@patrickambrosso 9 ай бұрын
Welcome Back Christian!
@A4orce84
@A4orce84 9 ай бұрын
Hey Christian - Great video! What do you use to build out your diagrams? I really dig the color scheme and look / feel. Keep up the great content, thanks again!
@markandrow4010
@markandrow4010 9 ай бұрын
Great tutorial as always, thank you. 👍
@Siyual
@Siyual Ай бұрын
Interesting, I'd not heard of HomeAssistant before this video. What I was doing was using a Raspberry Pi Zero with a static IP plugged in via USB to my router. If the router is up, it's up. Then I can VPN into my home network, and terminus into the Pi from my phone to run the WoL script. I'll check out home assistant, that looks very useful!
@marcelk.4371
@marcelk.4371 9 ай бұрын
Willkommen zurück Christian 😊
@nalle475
@nalle475 9 ай бұрын
Welcome back 😊
@ArifKamaruzaman
@ArifKamaruzaman 9 ай бұрын
Ey good to see another video.
@Jan12700
@Jan12700 9 ай бұрын
Is there a better way with the routing? In the company I work we have a software distribution tool (like the microsoft endpoint configuration manager) that also can send WoL packets, but because the tool runs in the server network and the clients are in their own network section the WoL doesn't work directly with it. We use also a VM that is in the Client network to turn on the clients with a WoL tool. It would be nicer if we just could route the packets directly into the client network.
@NetScalerTrainer
@NetScalerTrainer 9 ай бұрын
My supermicro servers can be powered on by IPMI commands. No OS changes required. When the server boots, the OS just boots up!
@BondiBen
@BondiBen 9 ай бұрын
Hey, thanks for the great video. I am just curious how jou created the overview at 0:44 is that a special program or something?
@Mr.White90
@Mr.White90 9 ай бұрын
Hey Christian! It's great to have you back! Keep doing such great videos! One question: What servers are you powering down at night? Are you shutting them down manuall or automatically? Grüße aus Deutschland!
@user-hc4lh8cl5z
@user-hc4lh8cl5z 9 ай бұрын
Nice Video, will try this night. But I'd like to know whitch Shell you used for the video. I really need this for Linux
@awetisimgaming7473
@awetisimgaming7473 9 ай бұрын
This seems like a pretty cool idea, but I'm sort of stumped when I comes to mine I think, I have full disk encryption with LUKS, and I'm not sure if the home assistant could detect the prompt, and maybe remote input a password, but I think that would be necessary for me to implement this fully on my machine. Also preferably not storing the password on the home assistant device since that's part of the beauty of my encrypted disk is you're screwed until you have me there to type it in or something
@Chalisque
@Chalisque 9 ай бұрын
I love wake on lan. I have some HP microservers for NAS's that don't need to be on that often. I have a Thinkpad (with broken screen) as a server for common stuff. All are woken by wakeonlan and suspended/powered-off via ssh. I have a web interface running on my Pi3 so that I can control it all through a browser (e.g. from my phone).
@ionia-life
@ionia-life 9 ай бұрын
Super video!.. Thanks...
@Alistarwormwood
@Alistarwormwood 2 ай бұрын
I'm using kubuntu and don't have network/interfaces. Is there somewhere else I can have this script?
@pcroom595
@pcroom595 9 ай бұрын
Welcome back! What about when you don't have /etc/network/interfaces => There's only folders there if-up.d, etc. and in there wpasupplicant. Also writing the command in there doesn't execute after reboot.
@markloughtonUK
@markloughtonUK 9 ай бұрын
Anybody know why you have to input the MAC address into the Switch setup and then again into the Button setup ? If you are selecting the switch as part of the button creation process then wont the info already be available to the button ?
@AntonKrall
@AntonKrall 9 ай бұрын
Which terminal / shell are you using on your mac, looks very interesting
@JensAndersson
@JensAndersson 9 ай бұрын
Great video, thanks
@andreas.grundler
@andreas.grundler 9 ай бұрын
It would also be great to be able to schedule the startup and shutdown of the servers. I don't know if every BIOS can do that yet.
@Anklav24
@Anklav24 9 ай бұрын
I've noticed that if my proxmox doesn't shut down properly, such as during a power outage, WoL doesn't work before property reboot. Why?
@VelislavVarbanov
@VelislavVarbanov 7 ай бұрын
ip addr show is fine, but ‘ip a s’ is even better 😂. More so ‘ip a’ as show is the default behavior. A neat thing I learned this week after finally ditching ifconfig.
@yifeiren8004
@yifeiren8004 9 ай бұрын
Actually, for professional IT, there is HBI that you can use software like MAAS to monitor the server, install system, auto provisioning, etc.
@michaelhess4825
@michaelhess4825 9 ай бұрын
This is a good intro. I would like to point out wol is not used (or shouldn't be) in business/enterprise/carrier networks. Either use remote managed pdu's for physical, or api calls if using virtualization. If you need to use it for bulk updates of clients for example, make sure you have acl's on your switch infrastructure to firewall access from your jump machine only! There are better options, scheduled on/off on the os for example.
@jakedrake99
@jakedrake99 9 ай бұрын
As a newcomer to enterprise IT, why shouldn't it be used?
@michaelhess4825
@michaelhess4825 9 ай бұрын
@@jakedrake99 security. Don't want systems turning on when they shouldn't be. Think about relatively insecure dev boxes, cert roots, anything that isn't hardened.
@IwishIcanFLighT
@IwishIcanFLighT 9 ай бұрын
Great video! Wake On Lan is neat, I've used it a lot in the past. But after trying the PiKVM I highly prefer its reliability with remote ATX control, plus all the other benefits of the PiKVM. TBF it might be a bit overkill if it's just to wake up a secondary server from time to time.
@sivi151
@sivi151 9 ай бұрын
Free vs 300 eur/device does not compare really in the real world
@naveentechs
@naveentechs 9 ай бұрын
@@sivi151 not if you can make one yourself for less than 100$
@tld8102
@tld8102 9 ай бұрын
is it safe to leave this feature turned on? what if a device on the network is compromised
@TommYFreaK
@TommYFreaK 9 ай бұрын
How you manage your Servers in Visual Studio?
@ravipratapmishra7013
@ravipratapmishra7013 9 ай бұрын
Will it work even if server is encrypted(hardisk)?
@c0p0n
@c0p0n 9 ай бұрын
I don't understand why os support would be required to turn on the computer. The os isn't active, since the computer is powered off. What am I missing?
@psicodelico6
@psicodelico6 9 ай бұрын
Propagate VLAN to Client works?
@brianedge6253
@brianedge6253 9 ай бұрын
Love the video Christian! Well, I love all your videos, and have been eagerly waiting for anything new. This is a great topic, and I have been using WoL for years, but never was able to get it work on my Linux Server. Tried your method, and can't do it without sudo, so the /etc/network/interfaces change won't work on reboot. :( Anyone on here know the solution? I know this isn't a forum, but if you have an easy answer, I'd appreciate a reply. :)
@willraya1791
@willraya1791 Ай бұрын
i will probably be setting this up oce i get home for some readon my server went down randomly and im away from it 😢
@welovetech7357
@welovetech7357 9 ай бұрын
hi, is it possible for os to detect if it was powered by wol or not,?? i have pc whith dualboot windows/linux and i want to set grub tu run windows on normal boot and linux on wol
@welovetech7357
@welovetech7357 9 ай бұрын
second question, you have activated wol at the os level do that change anything to grub ?
@RX_100.0
@RX_100.0 9 ай бұрын
Is it possible to turn on my computer remotely?
@deep_utsav
@deep_utsav 9 ай бұрын
Any idea on how I can set it up on ubuntu machine. I can't seem to find the /etc/network/interface file on the system
@christianlempa
@christianlempa 9 ай бұрын
Yeah, that should be put inside the a yaml config in netplan /etc/netplan/...yaml and then add a "post-up" section under your interface
@deep_utsav
@deep_utsav 9 ай бұрын
@@christianlempa Thanks I'll try it out
@0zzy0zwood
@0zzy0zwood 9 ай бұрын
Please don`t forget to talk about the Security Risks behind the WOL over Internet. Normally it's save to use it on the Local Network (in most cases), but especially it's used over internet, it could be a not so harmless risk!!!
@johnboyboy919
@johnboyboy919 4 ай бұрын
Make sure when your PC is off you can still see link lights If you have 2 mac addresses, try both and if that doesn't work try the other one and if that doesn't work try the other one
@postnick
@postnick 9 ай бұрын
I have a small web service on a Rasbery Pi where I can go to click a button to wake up any of my devices.
@Morpheus2515
@Morpheus2515 8 ай бұрын
Love your videos - which app are you using on your phone to use WOL ?
@christianlempa
@christianlempa 8 ай бұрын
Home Assistant is pretty easy
@Morpheus2515
@Morpheus2515 8 ай бұрын
Thanks will try it out later :)@@christianlempa
@Stoney_Eagle
@Stoney_Eagle 8 ай бұрын
My servers even have shutdown and reboot on LAN 😁 I have 2 Dell poweredge servers with IDRAC, but they are on 24-7 and I rarely touch them.
@TomBroyer
@TomBroyer 8 ай бұрын
What Terminal are you using in Section 4 of the video? looks nice
@christianlempa
@christianlempa 8 ай бұрын
Warp
@christianmayr7953
@christianmayr7953 9 ай бұрын
Take HPE-Server's und u got iLO remote-Managment or Dell AND you could see the booting procedure! It's the most coolest feature to remote control headless your Server's
@anthonyrussano
@anthonyrussano 9 ай бұрын
why does your shell say, "type # for AI...?"
@Nakameguro97
@Nakameguro97 3 ай бұрын
Suppose the system is hung. Can you reboot the machine using this process?
@christianlempa
@christianlempa 3 ай бұрын
No, it's just for waking up the PC
@BurkenProductions
@BurkenProductions 9 ай бұрын
What software are you making those network drawings in? Looks cool
@christianlempa
@christianlempa 9 ай бұрын
Apple Keynote :D
Don’t run Proxmox without these settings!
25:45
Christian Lempa
Рет қаралды 144 М.
How to protect Linux from Hackers // My server security strategy!
30:39
Christian Lempa
Рет қаралды 216 М.
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 38 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 7 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 60 МЛН
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 22 МЛН
Meet netboot.xyz - Network Boot Any Operating System
25:00
Techno Tim
Рет қаралды 734 М.
You should NOT use Cloudflare Tunnel (if you do this...)
10:07
Christian Lempa
Рет қаралды 236 М.
how did I NOT know about this?
23:06
NetworkChuck
Рет қаралды 901 М.
DO NOT design your network like this!! // FREE CCNA // EP 6
19:36
NetworkChuck
Рет қаралды 3,2 МЛН
Everything I Learned About Home Networking - A Newbie’s Perspective
26:36
Control Your PC From a Distance - IPMI &  Remote Management!
9:21
Linus Tech Tips
Рет қаралды 799 М.
This web UI for Ansible is so damn useful!
20:07
Christian Lempa
Рет қаралды 464 М.
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 606 М.
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Игорь Линк
Рет қаралды 127 М.
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 408 М.
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 720 М.