Skip to content

mehuman/hassVPNToggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

A script and configuration to toggle a VPN server from within Home Assistant. Currently only tested with a router running ASUSMerlin.

Steps:

  1. Create keys ssh-keygen -t rsa -b 4096 -C "comment"
  2. Copy key to host ssh-copy-id user@host
  3. Verfiy the connection ssh user@host. You shouldn't be asked for a password.
  4. Place vpntoggle.sh and the key somewhere accessable to Home Assistant and make sure the script is executable chmod +x vpntoggle.sh
  5. Edit the script to match your configuration.
  6. Add the configuration to you Home Assistant. It's of the type switch.

Things to look out for: If using docker you will need to generate keys within the container. You can access the container with docker exec -it CONTAINER bash. You will also need to place the script somewhere the containter can find it. I placed mine under the config directory defined in the docker run command.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages