TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Using Wake on LAN (WOL) Across the Internet (2010)

43 点作者 invpt大约 2 年前

7 条评论

neilv大约 2 年前
An alternative with simpler networking is to to rig up a little Web server on your home OpenWrt router, listening on the WAN interface. When the URL is requested (with authentication of some kind), it runs `etherwake` with the hardcoded MAC address and the hardcoded interface (e.g., `eth1.1`).<p>Then your UI to wake up your machine, from anywhere in the world, would be to access that URL via a Web browser or `curl` script.<p>For accessing the machine once it&#x27;s awakened, probably you have a single TCP port forward configured on the router, forwarded to the port on the machine for SSH or whatever service is exposed. No other networking config.<p>(You could alternatively code a small &quot;wake-on-demand&quot; program that runs on the router, and initially listens on the port that will be forwarded to the service of the machine, but is resilient against port-scanning (maybe in a service-specific way to validate requests before waking machine), and reliable in setting and unsetting the port forward in the router when the machine is up and down.)
评论 #35449545 未加载
评论 #35454520 未加载
评论 #35457425 未加载
dgwynne大约 2 年前
At work we tunnel WoL payloads inside DHCP packets (<a href="https:&#x2F;&#x2F;github.com&#x2F;eait-itig&#x2F;wolod">https:&#x2F;&#x2F;github.com&#x2F;eait-itig&#x2F;wolod</a>) so we can use the DHCP relays on the edge network to push the packets out for us. The bootp procotol has a handy flag that indicates whether the last dhcp relay should broadcast or unicast the message being relayed, which is very useful in this situation.
ListeningPie大约 2 年前
My setup is a router with OpenVPN server, always on raspberryPi and a sleeping server. iOS shortcuts can run commands over SSH. The RaspberryPi receives a command from the the iOS shortcut and wakes my home server with wakeonlan MAC:ADDRESS
mthoms大约 2 年前
This article says port forwarding won&#x27;t work because the IP address is &quot;lost&quot; when the computer sleeps.<p>Is that still the case even if you&#x27;ve hard-coded an IP address using DHCP on the router?
sourcecodeplz大约 2 年前
Damn, wake on LAN, the memories. Used to disable this all the time back in the early 2000s when everyone was scanning ports.
评论 #35455398 未加载
wildylion大约 2 年前
I just use a tiny OpenWRT router set up with Tailscale to wake my system up.
anilr大约 2 年前
Is Wake on Lan still actively used?<p>I created WOL software, but didn&#x27;t do a good job of maintaining it. :|
评论 #35454248 未加载
评论 #35454589 未加载
评论 #35454933 未加载
评论 #35455463 未加载
评论 #35454768 未加载