Private VPN

Here we are again with a practical guide to configure your private VPN!

I use this to connect from outside home to my internal services and devices.

Prerequisites

First thing first, you must have home assistant installed (I can show you how)

Wireguard

Install wireguard, is a Home Assistant Community Add-ons.

Then you must Forward port 51820 (UDP!) in your router to your Home Assistant instance.

Edit the configuration of the plugin with your host (maybe the one generated with duckdns plugin?).

host: YOUR_HOST
addresses:
  - 10.10.10.1

Add your client configuration

- name: baldarn-laptop // name of your client
  addresses:
    - 10.10.10.2
  allowed_ips: []
  client_allowed_ips:
    - 192.168.1.0/24 // your network

// another client
- name: baldarn-mobile // name of your client
  addresses:
    - 10.10.10.3
  allowed_ips: []
  client_allowed_ips:
    - 192.168.1.0/24 // your network

Great! you are done!

The plugin will generate the configuration for wireguard and also a QR code image to easly import the conf!

These files are located in the ssl/wireguard folder ;)

Now, if you want to configure the VPN in your phone and have android, you can download wireguard for android and configure it with the QR code image generated.

That´s it!

For any question come in the telegram channel