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

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

Captive Portal
2
4
2.2k
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 Mar 19, 2007, 4:10 PM Mar 19, 2007, 4:00 PM

    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 Mar 19, 2007, 4:10 PM

      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 Mar 19, 2007, 4:10 PM

        I'll gave that a shot, thanks Sullrich!

        1 Reply Last reply Reply Quote 0
        • J
          Justinw
          last edited by Mar 19, 2007, 5:00 PM

          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
          2 out of 4
          • First post
            2/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.