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

    FreeRADIUS Daily Reset Using Cron

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 4 Posters 1.4k 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.
    • L
      limez17
      last edited by

      Hi All!

      Good day.
      Would like to know, how to create a cronjob in pfsense to automatically restart daily counter?

      Thank you in advance.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Which counter exactly are you referring to? How often do you want to reset it?

        If it's daily it should start each day anyway.

        Steve

        L J 2 Replies Last reply Reply Quote 0
        • GertjanG
          Gertjan
          last edited by

          I do not recall that the daily/weekly/monthy counter had to be put in place manually.
          They were there when I installed FreeRadius.

          Install the cron package, you can see them.

          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
          • L
            limez17 @stephenw10
            last edited by

            @stephenw10 Thank you for responding. Its okay now. I though the daily reset of RADIUS counter is not working. But its working as intended.

            1 Reply Last reply Reply Quote 1
            • J
              juniormanuitt12 @stephenw10
              last edited by

              @stephenw10
              hello ... I have the same doubt, my purpose is to reset the traffic counter for freeradius quota, but in the documentation it says that it should be done with cron, but I don't know how to do it.

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

                @juniormanuitt12 said in FreeRADIUS Daily Reset Using Cron:

                that it should be done with cron, but I don't know how to do it.

                This, last post : read :

                @gertjan said in FreeRADIUS Daily Reset Using Cron:

                Install the cron package, you can see them.

                Have you installed the pfSense Cron package ?

                I have these :

                55fea389-7587-4b0a-936e-537d82369945-image.png

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

                J 1 Reply Last reply Reply Quote 1
                • J
                  juniormanuitt12 @Gertjan
                  last edited by

                  @gertjan It works perfectly, thanks ... But I take the opportunity to ask you, if it would help me to delete the records by independent user

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

                    @juniormanuitt12

                    The three lines is just a rm command (rm = delete file) and a file path.
                    You could elaborate the command, or use shell command script, and the only your imaginative will be the limit of what can be done.

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

                    J 1 Reply Last reply Reply Quote 1
                    • J
                      juniormanuitt12 @Gertjan
                      last edited by

                      @gertjan thank you very much friend. Your answers and advice were of great importance

                      1 Reply Last reply Reply Quote 0
                      • GertjanG Gertjan referenced this topic on
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.