Captive portal issue with user concurrency

  • I have a pfSense CARP cluster of two machines with 3 WAN interfaces in a failover group, no loadbalancing, running FreeRADIUS and the Captive Portal.

    What I am trying to achieve is the following result. If a user logs into the CP via their wifi interface on their laptop, and then later connects to the network via their laptops ethernet jack I want the username & password they used on the wifi to NOT WORK for the second login attempt via the ethernet.

    Basically I want 1 login to 1 MAC address.

    Reading around the forums it looked like the only way to do this was to use FreeRADIUS and set a users "multiple connections" value to 1. I have done this on my test setup and now what happens is, a user can login the first time via whatever interface they are using. But if they then try to login via a different connection (i.e a different MAC address) the CP login page doesnt give an error and the /var/log/radius.log file shows the login as successfully authenticated, but the user cant get out to the Internet now.

    So is there some better way to do 1 login to 1 MAC address that doesnt have this false positive result on the second login or do I just need to configure my CP differently? Here is the CP config:

    		<descr>DNS forwarder</descr>
    		<descr>Root DNS server</descr>

    I've removed content elements from the code above for clarity's sake. Here are the relevant sections of the FreeRADIUS config as well:

    			<description>Left pfSense system</description></config> 
    			<description>CARP VIP on LAN</description></config></freeradiusclients> 

    Any help would be greatly appreciated.

  • I have done this with both the internal database and with radius connecting to a freeradius server.

    Most of the Attributes that can be setup in FreeRadius the current Captive Portal will simply ignore. Many of them are yet to be implemented in the Captive Portal.

    Here is a method that should work.

    Services -> Captive Portal -> First Tab
    Look for 'Maximum concurrent connections' and set to 1. When captive portal sees a user that is already logged in it will log concurrent login in the logs under Status -> System Logs -> Portal Auth will remove the old mac address and add the new one. You should then see the new MAC address under Status -> Captive Portal.

Log in to reply