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

    Freeradius (possible login times)

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 2 Posters 259 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.
    • M
      mako
      last edited by

      dear community,

      i have set all users to use from 8am to 8pm. but if a user connects through freeradius at 7:59pm, then the user has acces after 8pm.

      how i can handle this that openvpn disconnect this user after 8pm?

      thank you so much

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        hi,

        This, Authenticating OpenVPN Users with FreeRADIUS, tells me that Authenticating works. What you want, is Accounting, as is used by the Captive portal, enforced by the Interim option.
        Simply put, I guess, this isn't possible - not present in the GUI.

        See also https://networkradius.com/doc/3.0.10/raddb/mods-available/logintime.html

        If there is a way, it would be some setting (script ?) on the OpenVPN server side that should be called every xx seconds, so it can question FreeRadius if the actual logged in user is still allowed to stay logged in.

        Plan B : on the OpenVPN interface you put firewall rules. Schedule them in time ?

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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