FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
sgursimran
Staff
Staff
Article Id 340143
Description

This article describes how to initiate a Wake-On-Lan (WoL) packet from the FortiGate to connected devices.

Wake-on-LAN packets can be sent from the FortiGate to power on a sleeping/powered-off device connected over the network.

Scope FortiGate.
Solution

Wake-on-LAN to work must be enabled in the BIOS/UEFI settings of the target device, and must also be supported by the target device’s operating system settings.

Follow these steps to enable this feature on Windows 10:

  1. Under the Network Adapter settings, enable the ‘Wake on Magic Packet’ feature, as shown in the attachment below:

 

wol adapter settings.png

 

  1. Select the Power Management tab, make sure the 'Allow this device to wake the computer', and ‘Only allow a magic packet to wake the computer’ boxes are enabled, and select 'OK'.

 

wol.PNG

 

Follow these steps to enable this feature on Linux:

  1. Check the interface name which it is desired to receive the packet on by running 'ip link'. In this case, it is 'enp4s0'.


ip link.PNG

 

 

  1. Use 'sudo ethtool <interface> | grep Wake-on' in order to check if wake-on-lan is enabled already or not.

wake on not supp.PNG

 

 

 

  1. It is visible that it is set to 'd', which means it is disabled. Run 'sudo ethtool -s <interface> wol g' to enable the wake-on-lan support.

 


set wol.PNG

 

 

  1. Running the command again, it's possible to see that it is now enabled and should be working.

 

 

wake on.PNG

 

To initiate the Wake-On-LAN (WoL) packet from the FortiGate, run the following command from the FortiGate CLI:

 

execute wake-on-lan <interface_or_port> <host_MAC_address> <protocol> <port> <IP_address> <password>