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

Radius seems to disconnect CP users randomly

Scheduled Pinned Locked Moved Captive Portal
6 Posts 4 Posters 1.7k 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
    timb0
    last edited by Nov 16, 2016, 10:40 PM

    Hi, I have been running pfsense for some years now using an older version for about 300 captive portal users using radius (radiusmanager by DMA softlabs - which I think uses freeradius). I added a new pfsense box bought from pfsense direct and copied (manually went through settings) the captive portal settings to the new box and have the new CP running with a handful of test users. However every few days to a week or more they get disconnected and have to re-log in to the CP. I see in the pfsense CP auth logs the following lines before they log in again:

    Nov 11 23:50:40 logportalauth 84114 Zone: dvlan_22 - RADIUS_DISCONNECT: user_name, 90:Ka:a8:W0:4b:24, 10.2.3.4

    These users are the same as on the other system and don't have this issue, I thought they were having DHCP assigning new IP's or something, so I changed the DHCP to give out addresses for 1 year :P that didn't change anything and their IP wasn't changing anyways.

    On the other CP system there is only RADIUS_DISCONNECT logs for actual reasons like, total_traffic_limit_reached etc. I don't like how there is no reason after the radius disconnect log to indicate why the user was disconnected. I am using 'Interim' radius options on each Captive portal.

    I am using PFsense 2.3.2 on the new (broken) system and some version 3 years old on the other.

    any help would be much appreciated.

    1 Reply Last reply Reply Quote 0
    • M
      muswellhillbilly
      last edited by Nov 17, 2016, 9:14 AM

      How have you configured your radius client service? Is there a timeout set on the radius box at all, or does the service get restarted at any time?

      1 Reply Last reply Reply Quote 0
      • D
        Derelict LAYER 8 Netgate
        last edited by Nov 17, 2016, 9:50 AM

        RADIUS can't disconnect a client. RADIUS servers do not "push" commands, they reply to requests. That is probably either a periodic authentication failure or a previously-received timeout.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • T
          timb0
          last edited by Nov 17, 2016, 11:46 AM

          Hey, thanks for your comments!

          Derelict – thanks, that makes sense about only 'replying to requests'. However if it's a periodic authentication failure, why or how would it fail authentication? these users have been logged in for months - they will be for many more months too. There are no timeouts set on anything in Radius that I can find.

          muswellhillbilly -- The Radius service could get restarted perhaps by another process for some reason, if the service dies I get alerts - it does die every few months which I just restart the Radius service, stopping and starting the service doesn't cause the disconnects to happen either when I do it manually.

          I don't know what you mean by radius client service?

          Nothing like this happens on the other pfsense box which uses the same radius server ..

          1 Reply Last reply Reply Quote 0
          • J
            jimp Rebel Alliance Developer Netgate
            last edited by Nov 17, 2016, 3:53 PM

            One example of how it can fail is when you set concurrent login limits on the accounts in RADIUS. If you do that, and anything tries to reauthenticate the user, it can fail if the RADIUS server thinks they're still online.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • T
              timb0
              last edited by Nov 29, 2016, 8:00 AM

              Thanks, I have this value set at 10 concurrent logins.

              Please note: The other pfsense doesn't get these disconnect's in the logs and doesn't get users being disconnected randomly, the same customers on the same physical network (different VLAN) using the same radius server. These disconnects dont' have a reason, all the other disconnect have a reason in the logs. This must be a clue?

              It seems that users don't get to stay on for more than a week, right now the longest online user is 3 days - there are about 14 test users.

              Cheers,

              Tim

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received