6

Windows also has Wake on Lan that allows a computer to be woken up from sleep; additionally, this can be disabled by a user on said computer.

I know that WoL exists on Linux, but how does one disable it?

8protons
  • 372
  • 1
  • 4
  • 12
  • 1
    Wake-on-LAN is a feature of the BIOS, not a feature of the operating system. What the OS might give you is a WOL client (the `wol` utility whose man page you link to) to wake up another machine, or a way to configure the WoL feature on this machine (by modifying BIOS configuration data). – Gilles 'SO- stop being evil' Jun 09 '16 at 23:01

1 Answers1

10

You can check the setting for an interface, say eth0, with ethtool:

$ sudo ethtool eth0 | grep Wake
    Supports Wake-on: pumbg
    Wake-on: g

From the ethtool man page you can disable it with

$ sudo ethtool -s eth0 wol d

Where this gets configured depends on what you use to start your network. archlinux gives some examples (for turning it on, but the reverse should be clear) for netctl, systemd, nmcli (NetworkManager), and udev.

meuh
  • 49,672
  • 2
  • 52
  • 114