/WolClient-Linux

Shell script for turning on pc remotely via pfSense/OpenVPN

Primary LanguageShellGNU General Public License v3.0GPL-3.0

WolClient Linux

A shell script to simplify power on of remote computers while connected via OpenVPN/pfSense VPN.
This is a stripped down version of WolClient but for Linux users.

pfSense setup / server side

  • Setup OpenVPN Server as you like. Hint: providing a DNS Server able to resolve dhcp clients hostnames can simplify things.
  • Setup the firewall to allow OpenVPN clients reach pfSense (https) and the remote computer (rdp).
  • Create a Wake On Lan user, without a certificate (it's not used in OpenVPN).
  • Edit the Wake On Lan user, set "WebCfg - Services: Wake-on-LAN" under "Effective Privileges".

WolClient setup / client side

  • Check if requirements are satisfied. This script relies on:
    • curl
    • grep
  • Create/edit wolclient.config with required settings:
    • Remote PC mac address
    • pfSense Wake On Lan user
    • pfSense Wake On Lan password
  • Run the script sh wolclient.sh