@Summer1000 said in WIFI LOGIN PAGE NOT SHOWING WHEN PC & MAC HAVE DNS 8.8.8.8, 1.1.1.1:
we have a wifi portal but some laptops & mac have input there own dns like 8.8.8.8 & 1.1.1.1
On a network where you control everything, router and connected devices, you can can use DHCP to assign IP parameters : the DHCP lease will contain the IP, network, gateway and DNS.
Or set up some or all settings statically. It's all up to you.
But, if you want your device anywhere (like everywhere) else .... then don't use static network settings on your device.
When you offer a captive portal to users (devices) you don't control, these device should use the "original" network settings. If they don't, then they can forget about connecting elsewhere.
After all, what happens when you take you device on which you've setup up 192.168.10.10 /24 and gateway + DNS 192.168.10.1 to you neighbor, and he is using 192.168.100.1 ?
Right, nothing works .... so stick with DHCP on devices.
Troubleshooting Captive Portal
[image: 1769498716189-2e4da971-16a3-4094-96ce-90185f1b6ea4-image.png]
When a device connects to a network that offers a captive portal, nothing passes before authentication (well : one exception : DHCP traffic).
Nothing means : no commercial stuff like '8.8.8.8', facebook, etc.
Portal connected devices should / have to use use DHCP.
You, as the portal admin, should use the default settings for the DHCP server : the gateway and DNS should be the IP of the 'pfSense' portal network.
The good news is : every device you buy uses DHCP ... so, out of the box, everything works just fine.
I'm using the captive portal for a hotel, and as far as I know, people who want to connect, can connect.
The login page shows up every time.
To make the most out of portal support :
This forum, in the captive portal part, search for "rfc8910" and read everything that's posted about the subject.
A lot of devices support RFC8910 these days (all Apple, all Microsoft, and as usual, some androids - the most recent ones will probably work fine), and it makes the portal support a lot faster and reliable
The idea is : as soon as the device makes a DHCP request, it will know that :
a portal is present.
where to find it.