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

    Freeradius not subtract the Session Timeout when user query from mysql

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 1.0k 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.
    • T
      tamduong
      last edited by

      Hi guys,

      Because some reasons, so I use mysql to locate all customer users and Freeradius will query from it to authen. The authentication work well but the user never expired because freeradius dont subtract the Session-Timeout when user connect the Internet.
      I already set the Max-Daily-Session :=500 like this in radcheck table.
      4c-66-41-5f-aa-cd | Max-Daily-Session | := | 500

      [2.3.2-RELEASE][admin@pfSense.localdomain]/root: radtest 4c-66-41-5f-aa-cd radpass 127.0.0.1 0 rath0066
      Sending Access-Request of id 71 to 127.0.0.1 port 1812
              User-Name = "4c-66-41-5f-aa-cd"
              User-Password = "radpass"
              NAS-IP-Address = 172.29.151.111
              NAS-Port = 0
              Message-Authenticator = 0x00000000000000000000000000000000
      rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=71, length=26
              Session-Timeout = 500
      [2.3.2-RELEASE][admin@pfSense.localdomain]/root: radtest 4c-66-41-5f-aa-cd radpass 127.0.0.1 0 rath0066
      Sending Access-Request of id 111 to 127.0.0.1 port 1812
              User-Name = "4c-66-41-5f-aa-cd"
              User-Password = "radpass"
              NAS-IP-Address = 172.29.151.111
              NAS-Port = 0
              Message-Authenticator = 0x00000000000000000000000000000000
      rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=111, length=26
              Session-Timeout = 500

      1 Reply Last reply Reply Quote 0
      • M
        muswellhillbilly
        last edited by

        Why not set the hard-timeout in your captive portal settings directly? It's under Services/Captive Portal, then choose the CP instance and set the Hard Timeout setting to whatever you like.

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