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

FreeRADIUS Daily Reset Using Cron

General pfSense Questions
4
9
1.4k
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 Jul 20, 2020, 10:59 PM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by Jul 22, 2020, 7:32 PM

      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 Jul 23, 2020, 6:19 AM Reply Quote 0
      • G
        Gertjan
        last edited by Jul 23, 2020, 5:49 AM

        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 Jul 23, 2020, 6:19 AM

          @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 Apr 1, 2021, 2:17 PM

            @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.

            G 1 Reply Last reply Apr 1, 2021, 3:16 PM Reply Quote 0
            • G
              Gertjan @juniormanuitt12
              last edited by Apr 1, 2021, 3:16 PM

              @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 :

              login-to-view

              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 Apr 1, 2021, 4:02 PM Reply Quote 1
              • J
                juniormanuitt12 @Gertjan
                last edited by Apr 1, 2021, 4:02 PM

                @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

                G 1 Reply Last reply Apr 1, 2021, 5:12 PM Reply Quote 0
                • G
                  Gertjan @juniormanuitt12
                  last edited by Apr 1, 2021, 5:12 PM

                  @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 Apr 1, 2021, 6:14 PM Reply Quote 1
                  • J
                    juniormanuitt12 @Gertjan
                    last edited by Apr 1, 2021, 6:14 PM

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

                    1 Reply Last reply Reply Quote 0
                    • G Gertjan referenced this topic on Apr 18, 2024, 9:37 AM
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.