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

    FreeRadius + Captive Portal "Amount of Time" Problem

    Scheduled Pinned Locked Moved pfSense Packages
    17 Posts 3 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.
    • P
      pfsense01
      last edited by

      I solved the problem. The solution for those experiencing the same problem is here.
      https://forum.netgate.com/topic/139132/need-help-on-max-daily-session-attribute

      Thank you @Gertjan 👏 👏 👏

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @pfsense01
        last edited by Gertjan

        @pfsense01 said in FreeRadius + Captive Portal "Amount of Time" Problem:

        radius -x

        Be careful.

        I said

        radius -X
        

        not

        radius -x
        

        I advise you to use

        radiusd -h
        

        to see all the options.

        Btw : If you see

        Failed binding to auth address * port 1812 bound to server default: Address already in use
        /usr/local/etc/raddb/sites-enabled/default[2]: Error binding to port for 0.0.0.0    port 1812
        

        you are informed some other instance is already running.
        You should stop radiusd first - and check that you stopped it.
        This shows the process ID :

        ps ax | grep 'radius'
        

        Than you kill it using

        kill abcde
        

        where abcde is the process ID (pid)

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        M 1 Reply Last reply Reply Quote 0
        • P
          pfsense01
          last edited by

          Thank you so much. I wrote wrong above. The command I use

          radius -X
          

          👍 👍

          1 Reply Last reply Reply Quote 0
          • M
            mustafa.azzam @Gertjan
            last edited by

            @Gertjan
            I have the same problem in radius server,
            I stopped radius server and check there are no ports and started it again, but it still not working.
            I need a help please. 😩

            1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan
              last edited by

              @Gertjan said in FreeRadius + Captive Portal "Amount of Time" Problem:

              radius -X

              What about reading what is said above ?

              It's not just a question of "port checking".

              The

              radius -X
              

              mode will tell you what is wrong / why it doesn't work.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              M 2 Replies Last reply Reply Quote 0
              • M
                mustafa.azzam @Gertjan
                last edited by

                @Gertjan
                I have this problem when I run this command (radius -X) and I don't know how to solve it.

                rad.PNG

                1 Reply Last reply Reply Quote 0
                • M
                  mustafa.azzam @Gertjan
                  last edited by

                  @Gertjan
                  Is this result maybe the reason for the problem??
                  two ipv4 use same port 1812

                  udp.PNG

                  1 Reply Last reply Reply Quote 0
                  • GertjanG
                    Gertjan
                    last edited by Gertjan

                    ??

                    The reason for the problem is that your are starting radius, nut there is already one running - in this case process 41473.
                    The instance you started bails out, explaining you with big red lines why.

                    I stopped radius server and check there are no ports ....
                    So, radius si telling you why.
                    You know how to find out why.
                    But you didn't act ....

                    Run

                    netstat -anp | grep 'radius'
                    

                    again.
                    Note the process number and kill that process.
                    Like this :

                    kill 123456
                    

                    Now, start radius

                    radius -X
                    

                    All the other details are already mentioned in this thread.

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      mustafa.azzam @Gertjan
                      last edited by

                      Thank you @Gertjan
                      I stopped Radius Server then I ran command (radius -X), It worked correctly.
                      But I have another question now .. when radius is running, the command (radius -X) will not run?

                      GertjanG 1 Reply Last reply Reply Quote 0
                      • GertjanG
                        Gertjan @mustafa.azzam
                        last edited by

                        @mustafa-azzam said in FreeRadius + Captive Portal "Amount of Time" Problem:

                        But I have another question now .. when radius is running, the command (radius -X) will not run?

                        Radius is a process you can see as a "server process".
                        Golden rule : on one and the same system, you can have on ONE server process that listens to a determined port.

                        So, if you launch "FreeRadius" using the pfSense GUI, you have a radius process runnin.
                        Example, right now, on my pfSense :

                        [2.4.4-RELEASE][admin@pfsense.brit-hotel-fumel.net]/root: ps ax | grep radius
                        83839  -  Is       0:18.74 /usr/local/sbin/radiusd
                        21455  0  S+       0:00.00 grep radius
                        

                        As you know, it's easy to check what ports it's using.
                        When I launch another, second radius process, it will bail out.

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

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