Skip to content

Shell script for turning on pc remotely via pfSense/OpenVPN

License

Notifications You must be signed in to change notification settings

frabnet/WolClient-Linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages