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

    FreeRadius server not starting in 2.4.4

    Scheduled Pinned Locked Moved General pfSense Questions
    21 Posts 2 Posters 3.0k 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.
    • emammadovE
      emammadov
      last edited by

      Though when executing this command radius server starts automatically, after a while it stops itself.

      Elvin

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

        oh, did u leave the ssh running after executing the command?
        radiusd -X just runs radius in debug mode in foreground. and it exists as soon as you close the ssh window.
        it is not the solution to your problem, just a way to figure out what is going on here.
        Check Diagnostics > Sockets and it will show 192.168.2.1:1812 and 192.168.4.1:1812 running even if radius shows up as stopped on services page. Strange, but maybe someone with better knowledge knows why it is not restarting properly.

        But now that you mention it stopping all of a sudden, indicates that it is also crashing, again you would need to look at logs to know exactly why it is crashing.

        1 Reply Last reply Reply Quote 0
        • emammadovE
          emammadov
          last edited by emammadov

          I looked at Check Diagnostics > Sockets and there is no 192.168.2.1:1812 and 192.168.4.1:1812 running. Currently radius stopped automatically. I started Radius with executing radiusd -X again, now I see these entries in Socket.

          oot radiusd 64486 12 udp4 192.168.2.1:1812 :
          root radiusd 64486 13 udp4 192.168.4.1:1812 :
          root radiusd 64486 14 udp4 127.0.0.1:18128 :
          root radiusd 64486 15 udp4 127.0.0.1:18127 :
          root sshd 31260 3 tcp4 192.168.2.1:33426 192.168.4.10:7792

          Elvin

          S 1 Reply Last reply Reply Quote 0
          • S
            strangegopher @emammadov
            last edited by strangegopher

            @emammadov okay so when you try to start it, it works but it just stops automatically? can you check Status > System Logs for any radius messages? or if you have it logging to /var/log/radius.log can you do this in ssh:
            cat /var/log/radius.log to see messages when the program exists.

            don't use radiusd -X to start freeradius, do it in Status > Services page.

            1 Reply Last reply Reply Quote 0
            • emammadovE
              emammadov
              last edited by

              I run cat /var/log/radius.log, but there is no log entries inside this file. There is no logs in System Logs either.

              CLOG▒!▒▒[2.4.4-RELEASE][admin@pfsense.smart.az]/var/log: cat radius.log
              [2.4.4-RELEASE][admin@pfsense.smart.az]/var/log:
              

              Elvin

              S 1 Reply Last reply Reply Quote 0
              • S
                strangegopher @emammadov
                last edited by

                @emammadov Go into Services > FreeRADIUS > Settings
                Select "RADIUS Logging Destination" to /var/log/radius.log and set "RADIUS Logging" to enable and then hit save.
                Go to Status > Services and try to start freeradius again.
                Check the log file again.

                1 Reply Last reply Reply Quote 0
                • emammadovE
                  emammadov
                  last edited by

                  I did as you said, but there is no logs in that file again.

                  0_1539687630486_1.jpg
                  0_1539687634894_2.jpg

                  Elvin

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

                    it seems freeradius is working fine in debug mode but something is preventing freeradius from starting normally. Can you try restarting pfsense and check if it makes any logs?

                    1 Reply Last reply Reply Quote 0
                    • emammadovE
                      emammadov
                      last edited by

                      I will restart pfsense after work tonight, because there are many employees working now at our company.

                      Elvin

                      1 Reply Last reply Reply Quote 0
                      • emammadovE
                        emammadov
                        last edited by

                        Removed freeradius, restarted pfsense and then reinstall freeradius, it began to work. Thank you very much,

                        Elvin

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