I'll start by introducing myself. I've been into computing since 1969, a system administrator for HP and Sun minicomputers, workstation networks, Linux, signal processing and GIS systems, etc. I still find HA to be very complicated and difficult to configure, at least for the things I'd like to do.
Until a couple of days ago, I was playing around with HA in a VM on my desktop but I've just moved my implementation over to a Dell Wyse thin client, that I picked up on eBay. So. it's getting serious. So far, I use HA to monitor various important sensors (e.g. refrigerator temp, water on the floor, etc.) at home and at a remote location.
At the remote location, I'm running a SMlite SMhub Nano MG24, which is running Zigbee2MQTT and is watching the fridge and water sensors. I've configured my home router to forward ports 1883 (TCP) and 51820 (UDP) to my HA machine and MQTT seems to be working pretty well. I don't seem to be able to restrict the MQTT port forward to a single source IP address. When I try, the connection is lost. Because of this, I think it would be a Good Idea ® to secure the connection by a VPN and drop the 1883 port forward. The SMhub implements Wireguard VPN.
After considerable messing around with settings, keys, etc, It looks like I have been able to get a wireguard link between the remote location and my HA box. The problem is that I really don't understand the address configuration parameters. On IPSec and Open VPN the client's IP address is set more or less automatically by the server an it's not something you have to mess around with. Is there some place that clearly explains the what and why of the wireguard settings for addresses, allowed_ips, allowed_client_ips, etc. Right now these are populated with blanks or more or less random numbers, like 10.10.11.3/8 but only because it looks like typical VPN addresses. Right now, my home LAN is mostly 192.168.50.X with a mask of 255.255.255.0 but I'm considering segmenting my LAN so that the cameras and IOT are on a separate VLAN, but I'm not there yet.
Any help is appreciated. Thanks in advance.