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

    FreeRadius won't start (differs from MaxC post)

    Scheduled Pinned Locked Moved pfSense Packages
    26 Posts 3 Posters 9.8k 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.
    • J
      jeroen234
      last edited by

      yes your pfsense install is to old
      first uninstall the freeraduis package
      then download from this link the pfsense full update
      http://pfsense.com/~sullrich/1.0.1-SNAPSHOT-12-23-2006/

      when it is on youre pc got to the webgui of pfsense
      and upload that file on the firmware page
      when the upgrade of pfsense is done you can install the freeradius package

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

        Thanks for the quick reply, I wasn't sure if a newer snapshot would help or not, I'll give it a run and let you know.

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

          I updated to the latest snapshot 12-23 (after uninstalling the package) fired it up, reinstalled freeradius, and the same error persists.  Any additional ideas?

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

            I noticed that the package version in the gui is 1.1.2 but the version the package manager gets according to pkg_info is freeradius 1.1.3_1, I'm not sure if these are meant to match, but I looked on another older machine I have and it said freeradius was 1.0.4.  I noticed that current port was posted 10/29/2006 on freebsd ports.  Any chance that this is the problem and does anyone know how to fix it?

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

              i have 1.1.2 in the gui and when installed its 1.1.3_1
              so the 1.1.2 in the gui is a leftover from before the last update off the package

              i will put rlm_exec.a on a webserver that i own
              i have had this error 1 time but it was fixed by uninstalling the package and go to the last snapshot and then reboot and then install the package
              don't now if i rebooted again afther that
              but then it worked

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

                if i have made the port forward on pfsense correct then you can access my webserver and download the file from it
                http://wlelystad.homeip.net/pfsense/freeradius/

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

                  hmm, looks like its still not forwarding right just yet, thanks for your effort to help me out though.

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

                    oeps the nated ip mist a 1 so pfsense was sending traffic to a ghost pc
                    thanks for reporting

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

                      I got the file and set the permissions and replaced the old one, they differed by 600 bytes or so.  I still get the same error as before, and I started my install fresh, then updated to 12-23, then installed the package, still had the error, tried to replace the file with the one provided above, still has an error.  If anyone else can confirm similiar problems, that would be great.  Any other suggestions would also be appreciated.

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

                        i see there a more files of rlm_exec
                        i have :

                        ls -l rlm_exec*

                        lrwxr-xr-x  1 root  wheel    11 Nov 25 22:26 rlm_exec-1.1.3.la -> rlm_exec.la
                        -rwxr-xr-x  1 root  wheel  8676 Nov 25 22:26 rlm_exec-1.1.3.so
                        -rw-r–r--  1 root  wheel  4326 Nov 25 22:26 rlm_exec.a
                        -rwxr-xr-x  1 root  wheel  880 Nov 25 22:26 rlm_exec.la
                        lrwxr-xr-x  1 root  wheel    17 Nov 25 22:26 rlm_exec.so -> rlm_exec-1.1.3.so

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

                          Here is what I see:

                          lrwxr-xr-x  1 root  wheel    11 Dec  3 18:45 rlm_exec-1.1.3.la -> rlm_exec.la
                          -rwxr-xr-x  1 root  wheel  8676 Dec  3 18:40 rlm_exec-1.1.3.so
                          -rwxrwxrwx  1 root  wheel  4326 Dec 28 22:32 rlm_exec.a
                          -rw-r–r--  1 root  wheel  4914 Dec  3 18:45 rlm_exec.aold
                          -rwxr-xr-x  1 root  wheel  816 Dec  3 18:45 rlm_exec.la
                          lrwxr-xr-x  1 root  wheel    17 Dec  3 18:40 rlm_exec.so -> rlm_exec-1.1.3.so

                          I did a chmod 777 on it just to see if it had anything to do with permissions, and .aold is the previous rlm_exec.a other than rlm_exec.la it looks like all of them are the same size

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

                            can you test if u copy this file to /usr/local/etc/raddb/radiusd.conf
                            http://wlelystad.homeip.net/pfsense/freeradius/radiusd.conf
                            edit this line to youre ip
                            bind_address = 212.187.92.144

                            if it then works for you ?

                            if that works then download
                            freeradius.inc
                            freeradius.xml
                            from my website to /usr/local/pkg/freeradius.inc
                                                                          freeradius.xml

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

                              As a matter of fact it does seem to get a clean startup, I don't see the service start in status > services, but when I try and start it again it says its running and the error is gone.  I made some changes in the gui and when the new conf file was created the same error came back, I wonder if there is a problem with how it is being written on the fly.  I'll look into it more, thanks again for your help.

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

                                if you make a chanche in the gui then it writes the error back
                                the 2 gui files on my website have the error removed and don't write it to disk
                                also it add's some extra's

                                1 Reply Last reply Reply Quote 0
                                • jahonixJ
                                  jahonix
                                  last edited by

                                  On a vanilla system updated to 2006-12-23 I installed the freeradius package but the service won't start.
                                  Deinstalled from webGUI and trying to manually add:

                                  pkg_add -r freeradius

                                  gives this error:

                                  warning: package 'freeradius-1.1.3_1' requires 'gdbm-1.8.3_3', but 'gdbm-1.8.3_2' is installed

                                  It won't start also but might be a hint…
                                  Just deinstalled the package as I don't need it on this box.

                                  jahonix

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

                                    the pfsense freeradius package is talered to pfsense the one from freebsd needs more libs then pfsense has
                                    in the pfsense freeradius gui there is a small gui error
                                    if you replace freeradius.xml and freeradius.inc on location /usr/local/pkg
                                    with the same files from http://wlelystad.homeip.net/pfsense/freeradius/

                                    and then go to freeradius settings on the gui and save then the correct freeradius config is made and freeradius will start

                                    1 Reply Last reply Reply Quote 0
                                    • jahonixJ
                                      jahonix
                                      last edited by

                                      yep, just got it working this way.
                                      Thanks alot - especially for the extended options accessible via webGUI!

                                      Now I can lockout the kids at night when they are supposed to sleep (if it works, haven't tested it yet but I am confident…)

                                      jahonix

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

                                        for that option you need to config the captive portal with these options:
                                        Hard timeout  leave blank
                                        send RADIUS accounting packets
                                        Reauthenticate connected users every minute
                                        Accounting updates interim update

                                        then pfsense will check every min if the user is still alowed

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

                                          Well the updates look great, apparently I am still doing something wrong though here is the break down again:

                                          With your updates I am now getting this error :

                                          radiusd.conf[246] Failed to link to module 'rlm_expr': /usr/local/lib/rlm_expr.a: invalid file format

                                          When I use an invalid bind address it does say this:

                                          There appears to be another RADIUS server running on the authentication port 1812

                                          Without jeroen234 upates I got the error on line 226 as previously posted…

                                          It sounds like I may just still have a few bad lib files that aren't being built correclty, even with a fresh radius install, I'm not sure exactly why that is, but I would greatly appreciate if you could post the other lib files on your site for radius as well and I can see what I can do from there.  Thanks again for all your help.

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

                                            i think that you better can try a complete fresh install of pfsense
                                            http://pfsense.com/~sullrich/1.0.1-SNAPSHOT-12-23-2006/pfSense.iso.gz
                                            i can post the 50 or so freeradius files
                                            but if youre hd is not good then that makes no sense
                                            and my libs are the same as that you installed with the pfsense freeradius package

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