Captive portal login loop and will my solution work?



  • I have a captive portal in a 100 room hotel. My dhcp was handing out 150 IPs (192.168.0.100-192.168.0.250)

    The hotel has become busier and I'm seeing alot of this in the logs:

    logportalauth[46934]: CONCURRENT LOGIN - REUSING OLD SESSION: unauthenticated, MAC, IP  very similar to this https://forum.pfsense.org/index.php?topic=42944.0

    Guests were complaining of not being able to login and being sent back to the login page

    So I made my LAN 192.168.0.0 / 16 (previously 192.168.0.1/24)  and my

    DHCP scope 192.168.0.60-192.168.1.250 which I believe will give me 440 IPs.

    Will this solve the problem?

    Also I adjusted my captive portal idle timeout to 4 hours and hard timeout to 8 hours

    My DHCP server lease time is now 12 hours and maximum is 24 hours.

    Thanks!



  • Hi,
    This: (previously 192.168.0.1/24) with  (192.168.0.100-192.168.0.250) give 150 Ip's.
    For a hotel that has 100 rooms, I guess its not enough.

    I have a hotel with 32 room and I'm serving 240 IP's on my 'dedicated' OPT1 (third) interface, this interface is only for portal usage.
    When you shift to 192.168.0.0 / 16 you have approx. 2^16 = 65535  IP's in your DHCP range which will be more the enough.

    In an hotel, most of the time people read their mails, do so some surfing and shut down their devices.
    So an idle time of 15 minutes and a hard time out off about 4 hours will be enough.
    People do sleep in a hotel, that's why they came in the first place :)

    I always left DHCP setting to default. Yours is far to high, eating up all available IP's in 24 hours without being able to be recycled earlier.



  • thank you!

    I only have a Wan and LAN interface. Why would I need a third interface?

    It's good to keep fine tuning!

    I set my dhcp scope from 192.168.0.60 through 192.168.1.250

    I set my idle timeout to 2 hours and hard timeout 4 hours

    my dhcp lease time is to 4 hours and max 8 hours.


Log in to reply