I’m really frustrated trying to get WireGuard working. Before I’ve installed and configured WireGuard I had the normal DuckDNS + the router port forwarded and it worked pretty well. Although since I wanted more security, I’ve installed the WireGuard. Now the issue is: when trying to access my https://PRIVATE.duckdns.org/ while connected to the VPN, it opens the router web interface instead. When I specify the port 8123 in the link above the page isn’t found. I’ve created the WireGuard Port Forwarding configuration and it is working from outside the network, but I’m not redirected to the HA IP I’m redirected instead for the router IP.
Unfortunately the router is from the ISP, and the port forwarding rules are configured in this menu that says everything but “Port-Forwarding”. You basically associate a rule to a device. The device itself is the HA running on another pc in a VM. The port forwarding is working since I can access my duckdns link from outside the LAN and the WireGuard server as you can see from below:
I also have these configurations which I don’t know if they are really necessary or not:
Does anybody knows where the problem might be? My guess is that the port forwarding isn’t redirecting to the HA IP, but I had the same configuration for the opened port for the DuckDNS and it worked fine (I’ve deleted the opened port 443 since I wasn’t going to use it anymore).
I’ve forgot to mention that after I’ve configured the port forwarding rule for Wire Guard (51820) to my HA, I’ve deleted the previous port forwarding rule 8123->8123 for the HA device, to avoid having another opened port. Since then I can’t access my HA through the address https://MY_DUCK.ducknds.org:8123 while connected to the VPN in my smartphone, outside the home network. Although I can access the HA private IP (192.168.1.XX:8123) outside my network when the VPN is connected.
This is a problem because I can access HA outside my home network with my local IP which is fine, but can’t use the companion app to access it outside my network.
Please I would really appreciate any help, I’ve no other solutions.
Hi João
have you closed the issue? I’m starting configuring my external access and found out your doubts, and they are similar to mine. And also have seen the router interface, and i’m affraid they are the same, MEO PT provider, right?
Maybe a typo, but you can’t use httpS://xxx:8123 because homeassistant does not provide SSL. You need caddy or nginx proxy manager to get certificates. There are addons for both, but your instance needs to be reachable on the internet to do it simply.
I think you can set the external URL in the companion app to be whatever you want. Try setting it to your internal URL and you should be fine when using the VPN.
Also, do not access your homeassistant via 8123 from outside your network unless use a VPN. It is not encrypted
edit: httpS was from an OLD post before yours. sorry