Greetings… like many of you, I use a NAS to host a virtual machine for Home Assistant. I happen to use a Synology NAS, and it has two physical network ports.
When I look into the Virtual Machine Manager in Synology, there doesn’t appear to be a way to change the settings to say I only want the VMs to be accessible over one of those two physical network ports… it’s all or nothing.
Further, it doesn’t appear that I can set the individual VM to use a specific physical network port either.
This really isn’t an issue most of the time, so much an inconvenience, but I have to choose one of those physical ports (IP addresses) in my configuration.yaml “trusted proxies” line. I can reboot the VM… no problem. I can reboot the Synology… no problem. But once in a while, when I update the Synology OS, the physical port that the Home Assistant VM is using (LAN1 vs. LAN2, or vise-versa), flips on me. I don’t even realize it until I try to access Home Assistant remotely via my subdomain (ha.mydomain.com), to find that it has stopped working.
Although I’m very familiar with this by now, and it’s not really an issue to go into the configuration.yaml file and change the trusted proxy from one IP to the other, I’ve recently tried to put two IP entries in there, and it doesn’t work.
The HTTP section of my configuration.yaml file currently looks like this, and works great:
http:
use_x_forwarded_for: true
trusted_proxies: 192.168.xx.xx
server_port: 8123
(Yes, I have a full IP address in there that works… xx is just for this display.)
I have found documentation that looks like I should be able to do it, per below. But it doesn’t work:
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.xx.01
- 192.168.xx.02
server_port: 8123
So… my seemingly simple question, just out of convenience alone… is there anyone that is doing this successfully, showing Home Assistant that it could conceivably use either of two addresses as a trusted proxy?
Thanks in advance for your help!