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

    FreeRadus 1.1.8 pkg v1.0.5 - Reload new config

    General pfSense Questions
    2
    4
    1.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.
    • S
      sokolum
      last edited by

      Wrote a local script that will change users password in the file 'users' at '/usr/local/etc/raddb/'.

      Now, with the same script i am writing i want to initiate a 'Reload' of FreeRADIUS, so that it will learn the new values within the file 'users'. But i can't find the way how to do a reload or a restart. The following command doesn't work:
      /usr/local/etc/rc.d/radiusd onerestart

      Tried the following locations:
      /usr/local/etc/rc.d/radiusd
      /usr/local/sbin/radiusd

      Now, or i am just miss-using the implementation of FreeRADIUS and misunderstanding its working and have to use FreeRADIUS 2 and make these changes in xxxSQL database. Actually it seems more logical to use xxxSQL

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        radiusd onerestart seems to first work on freeradius2

        On freeradius1 package you should look at this file:
        https://github.com/pfsense/pfsense-packages/blob/master/config/freeradius.inc

        I found this:

        
        $rcfile['file'] = 'radiusd.sh';
        $rcfile['start'] = 'logger -f /var/log/system.log "freeRADIUS rc_start: killing all existing radiusd processes" && killall -9 radiusd ; sleep 5 && logger -f /var/log/system.log "freeRADIUS rc_start: starting radiusd " ; radiusd -s &';
        $rcfile['stop'] = 'logger -f /var/log/system.log "freeRADIUS rc_stop: killing all existing radiusd processes" && killall -9 radiusd ; sleep 5 && logger -f /var/log/system.log "freeRADIUS rc_stop: radiusd has quit"';
        
        

        So it looks like:

        Stopping:

        killall -9 radiusd
        

        Starting:

        radiusd -s &
        
        1 Reply Last reply Reply Quote 0
        • S
          sokolum
          last edited by

          Thank you for your input.

          My issue with this solution is that it takes to much time, to restart the whole process. If it is not possible with FreeRadius, then i guess have to use Cistron Radius, who can (reload configuration, instantly). But then i have to add myself a GUI fir adding users (nice, another project)

          1 Reply Last reply Reply Quote 0
          • N
            Nachtfalke
            last edited by

            Why don't you use freeradius2 which restarts much faster with

            radiusd onerestart
            

            Freeradius2 can do everything freeradius1 can and more.

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