Navigation

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

    CP auth info hand off to Radius stops functioning after Radius restart

    Captive Portal
    2
    4
    1994
    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.
    • J
      Justinw last edited by

      Pfsense, running a snapshot from the first part of this month (March 2007) gets a master radius users list from the home server which is updated every 15 min or so.  The pfsense box only retrieves this list every couple of hours.  The server runs a cron to the get updated list and restart radius.  Here is the shell script that it executes:

      
      sftp root@www.*******.net << "EOF"
      #getting the radius file
      lcd /usr/local/etc/raddb/
      cd /var/www/radius/
      get users
      #putting the ipUpdater file
      quit
      EOF
      
      /usr/local/etc/rc.d/radiusd.sh restart
      
      

      I've also tried restarting radius with this instead of the shell script:

      
      killall radiusd
      radiusd -s &
      
      

      Okay, now comes the two problems.  Upon restarting radius, sometimes radius just dies altogether.  Also, sometimes after radius is restarted, the captive portal will start to refuse ALL connections regardless of the username or password given.  The only way to resolve it is to restart the CP and then it starts accpeting again.  Any help here would be greatly appreciated!

      1 Reply Last reply Reply Quote 0
      • S
        sullrich last edited by

        Instead of killing it like that try:

        killall -HUP radiusd

        Then you may not need to restart it.  It should tell it to reread the configuration files.

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

          I'll gave that a shot, thanks Sullrich!

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

            hoo boy, that did it!  Not sure why I didn't think of that, but no more problems for the last hour or so.  Thanks again

            1 Reply Last reply Reply Quote 0
            • First post
              Last post