How to setup Captive Portal for my wireless access point?



  • My captive portal setup was for a RUN interface with a USB adapter. Since 2.1.2 update any wireless client connection will crash pfsense. I have replaced the USB adapter with wireless access point. It has a IP on the lan.

    How to setup Captive Portal for my wireless access point?



  • Easiest way would be to plug the WAP into a separate interface and run CP on that interface.



  • Thank you for your help.

    A separate interface is the easy way but I am trying to avoid the need to run a new cable also.



  • :P
    Typically, between the OPT1 "captive portal interface" and the AP you need a network cable.
    If a USB-dongle-AP was doing ok for you (it was stuck in the pfSense box), I advise to use a 10 inch (30 cm RJ45) cable or even less ;)

    Most of us have a LAN interface running on 192.168.1/24 - so use the OPT1 interface on 192.168.2/24 - The OPT will have a 192.168.2.1 and your AP (running in AP mode) should have 192.168.2.2
    When configuring the portal service, add the MAC and/or IP to the "pass-through-MAC" and "Allowed IP Addresses", so the AP can sync freely with NTP etc.
    The DHCP server on the portal interface should distribute IP starting from 192.168.2.3 and higher.



  • Thank you for your help. Good tip on adding pass-through-MAC for WAP

    My USB dongle AP was working in 2.1 but in 2.1.2 any client connection will crash pfsense. I have a virtualized environment so the simplest for me now would be to setup 2.1 just to run CP with a USB dongle and see how that goes.