Connecting to the LAN web server via VPN on a gl-inet OpenWRT router
Connecting to the LAN web server via VPN on a gl-inet OpenWRT router
You can reach the local server through HTTPS on port 443 from another PC on the LAN using a VPN. For zero-trust, ensure your WireGuard setup is active and the web server points to the LAN IP (192.168.12.2). On the LAN side, configure the DNS server to map the web server URL to that LAN IP instead of redirecting via the public URL. This way, accessing via the LAN IP works without needing a VPN.
Your network traffic likely passes through the VPN, affecting DNS lookups. Adjusting routing tables might be necessary. This resource serves as a solid starting point. https://www.wireguard.com/netns/
For various reasons, the default DNS settings differed from the router's IP configuration. Once I set the internal IP to 10.0.0.1, everything worked properly.