The FQDN to access the exposed service ($LINK_DOMAIN) should resolve to the IP address of the Gateway.
However, when the FQDN resolves to an IP in a private subnet, the GATEWAY_ENDPOINT ($GATEWAY_IP:$WIREGUARD_PORT) is not set correctly.
Use a DNS lookup to find the ~public~ access IP address of the Gateway, instead of looking for the public IP of the Gateway.
The FQDN to access the exposed service (
$LINK_DOMAIN
) should resolve to the IP address of the Gateway. However, when the FQDN resolves to an IP in a private subnet, theGATEWAY_ENDPOINT
($GATEWAY_IP:$WIREGUARD_PORT
) is not set correctly. Use a DNS lookup to find the ~public~ access IP address of the Gateway, instead of looking for the public IP of the Gateway.