2

I like to have my homeserver (running Ubuntu) automatically powered on when I am connecting via SSH from the internet.

I successfully configured the server to listen for Wake On LAN (WOL) magic packets on the local network. I can poweroff the server and then send a WOL magic package with wol to start the server. Everything is working :)

But i like to go further: My router (Apple Airport Extreme) is capable of Wake On Demand (WOD). But how can I register my server (e.g. with Avahi) to the router, so that it knows to wake the server when connecting via SSH?

Edit: Some details: If the server is already running, i can connect from the internet via SSH; port forwarding is correctly set up.

1

You need something to emulate a Bonjour Sleep Proxy client and there is something that does do that: Sleep Proxy Client.

I'd really recommend reading through that page but the instructions for installing it are pretty simple:

sudo add-apt-repository 'deb http://repo.weinlein.info unstable main'
echo '-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (GNU/Linux)

mQENBFAzopoBCACoGg5JRZifLTUQE6C+OVZq3bjZSK3BX5bYC8xkL+NohUDM2hy3
ORkEVqMClp69VagfnoETsiI67QD3KMVm8gcRdsZ+Sz3gkiiSWkSCYBehZw9w1/xA
KJ6Fd7O6WG3Ejs0VTPONxPIZs5LISBqXlj4ihePWXSjni6ct/dRWrhsZpQ7wXa/p
QudsGio04C2MvN/+YK5PqVT2Xs2nD3V0YuNTUWC5QrCABDZaM5p4uN+kPgw5qQV2
Mx72QkxaRptkNQTuCvuZjRXLGV0rft6sdRjMcY4HJTAeCcX1KAbEsfjmPguAv/bt
KGPzuQPNs8CrS63Hc8mEAtH84Wb7gVRILUaVABEBAAG0HUFuZHJlYXMgVyA8ZGV2
QHdlaW5sZWluLmluZm8+iQE4BBMBAgAiBQJQM6KaAhsDBgsJCAcDAgYVCAIJCgsE
FgIDAQIeAQIXgAAKCRD6HdaF+2KzrF5nB/wJp8FAS4KLEbxcDIJuPFDT0RWCVVfB
yH3Y0tcpXGBiPtIp7He1fc7YX/81jR5ixUcHylTjf5kXu9QBVvpZSiwBfjBLGdYL
k6023z6vIEeKx1MwLEUF8MU0cvAdzD3uSZaZBYtPhvPl50kWu8X1/R+4ZWUCytPJ
4QF0KeV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BLOCK-----' | sudo apt-key add -

sudo apt-get update
sudo apt-get install sleepproxyclient
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.