Image URL in captive portal not showing
-
Hey everyone,
I’ve got a captive portal that has an image on it. The image src is a url rather that a file that is uploaded to file manager. The image is stored on AWS. I’ve added the domain name AWS bucket as a host name but even with this the image won’t show.What I find interesting is that if I open two portals and connect with the one then the image shows up on the other. Does anyone know what could cause such behaviour?
-
Probably the client cannot resolve the domain name of the image URL. You'd need to either upload the image to pfSense, use an IP address in the URL or allow access to the DNS server.
-
@owenv said in Image URL in captive portal not showing:
I’ve added the domain name AWS bucket as a host name but even with this the image won’t show
Connect to the portal without identification.
Can you use / visit / see the AWS rule now ?
Keep in mind : a firewall doesn't use URLs or host names for that matter : it only understands "IPs" so if you use a host name, it should be present listed in the allowed host names and now you have to hope that the IP (only one IP !!) it resolved to is the correct one (AWS is typical for using a lot of IP addresses, not just "one").See here : Allowed Hostnames - the first Note.