Hello,
I have set up a captive portal. It works well by redirecting to https://wifi.mydomain.com to log in.
On another container I made a PHP page (at https://getvoucher.mydomain.com/[token]) that generates vouchers using the OPNSense API and redirect to the login page with the fields automatically filled up. Thus, my customers can just scan a QR code, press Submit and they are in.
The issue I have is with devices having mobile data enables. If so, the getvoucher.mydomain.com is resolved externally, so it is not reaching my script. That doesn't happen for wifi.mydomain.com which resolves correctly. Why ? Is there a way for getvoucher.mydomain.com to behave the same and so that it resolves locally ?
Regards.
I have set up a captive portal. It works well by redirecting to https://wifi.mydomain.com to log in.
On another container I made a PHP page (at https://getvoucher.mydomain.com/[token]) that generates vouchers using the OPNSense API and redirect to the login page with the fields automatically filled up. Thus, my customers can just scan a QR code, press Submit and they are in.
The issue I have is with devices having mobile data enables. If so, the getvoucher.mydomain.com is resolved externally, so it is not reaching my script. That doesn't happen for wifi.mydomain.com which resolves correctly. Why ? Is there a way for getvoucher.mydomain.com to behave the same and so that it resolves locally ?
Regards.