@cniles said in Need hlep with Captive Portal. I had it working but I changed somthing and can't get it to work:
but I changed a setting, and the captive portal will not show up
Like what ?
Disable the captive portal network interface ? (sorry, had to ask that)
No info can not generate useful info.
The sited "captive-portal-does-not-redirect" link above is not some kind of optional step : you have to follow it.
Added to these steps, I'll add :
Take note of the interface on which the portal runs :
942cfca3-0303-4f25-9fe8-cef146119f31-image.png
and then de activate the portal :
70cc5b63-b108-4050-97a3-8d26748331b5-image.png
and save.
Get the network settings of the interface on pfSense :
b417c976-ba99-427d-8536-c9e9633f9123-image.png
and that it has a /24 mask/size (to the right of the IP)
and also check that the DHCP server is activated on that interface.
Check that the resolver has the 'good' settings :
939c028f-e592-4828-8fd8-f1232d078f52-image.png
Note : the SSL/TLS Certificate is a "don't care" here.
Now locate (physical) on pfSense and test this interface.
When you connect to it, lookup up the IP you received. It must be an IP in the portal network you've found above.
Also, what was the gateway you received ? And the DNS. These two must be identical the the pfSense IP for your portal network.
What are the firewall rules for the portal interface ?
For testing purposes, you should use this rule :
f70d6727-8d9e-4b69-8042-ea9c4c364def-image.png
Later on, you can change - or remove - this rule for more, restricting rules.
On the device your using to test, preferably a PC type device, test DNS.
It has to work.
The above steps tell you that the interface works fine.
If you have any questions, tell us.
Btw : up until here, everything I've mentioned and showed is pretty 'default', no special settings are needed.
You've probably figured out that my example is using a dedicated Network for the captive portal. That's because a captive portal is a special case network : it should host devices that you don't 'trust', as it is meant to be an access for visiting devices. Your own devices should be on the default LAN interface.
This makes things easier to implement and understand. Its not mandatory.