Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Captive Portal, Freeradius3 and External Mysql Database - Max-all-Sessions

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 547 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      asbonet
      last edited by

      Hello,

      On Freeradius 2 there was an attribute Max-Forever-Session, When I used this attribute in my MYSQL table in radcheck, i was able to login and after the specified time it would force a logoff

      28 asbo Cleartext-Password := 1234
      29 asbo Max-Forever-Session := 300

      Currently, when I do a test login I get an error in my system logs

      Wed Mar 28 14:50:51 2018 : Auth: (80) Invalid user (sql1: Failed to create the pair: Unknown name "Max-Forever-Session"): [asbo] (from client OfficeTest2 port 2006 cli a2:e9)

      Looking through /usr/local/etc/raddb/mods-available/sqlcounter I see that they are using Max-All-Session I try this on an account but after the allotted time of 5 mins the device does not get disconnected and can still log in to the system. Before in Freeradius 2 when the Max-Forever-session would reach the amount set on the system it would disconnect the user and stop the user from logging in again.

      If anyone can help me work out what i am doing wrong or inform me on the new way the system is doing it that would help a lot,
      Please help!

      1 Reply Last reply Reply Quote 0
      • J
        jaspras
        last edited by

        Max-All-Session in radcheck
        Set to interim accounting in captive portal

        The message that you are receiving is that radius3
        Does not understand Max-Forever-Session

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.