iCloud Private Relay on local network (LAN)

Hi,

I need a version of a web app to be accessible on a local network (LAN), when the users connect to a wifi without internet access.

I provide a valid TLS certificate to validate the website. There is also a local DNS (dnsmasq), with the following entries to return NXDOMAIN, as specified by the documentation.

server=/mask.icloud.com/
server=/mask-h2.icloud.com/

However, without internet (no cellular data), there is an error in Safari instead of the website. When there is some internet connection, there is a warning that allows to continue to the website by showing the IP address, which is not clear for the user.

iPhone users are very frustrated. Is there a solution?

iCloud Private Relay on local network (LAN)
 
 
Q