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

    Dynamic Limiter script for pfsense

    Scheduled Pinned Locked Moved Traffic Shaping
    18 Posts 8 Posters 8.3k Views 3 Watching
    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.
    • D Offline
      debremarkos
      last edited by

      same instructions as before, this scripts has many improvements, it checks users and the rate for a certain number of times (set to 15 here at 1 second intervals). Then it akes an average and uses this to calculate the limit. Also there are simple switches at the start of the script to turn on and off logging and sending things to the rrd server. Also there is now a log rotate feature tha will keep a certain number of logs and delete older logs.

      I use this script in my environment fine and the new way of detecting who is an active user has led to a much better calculation of the limit.

      Also the logs look prettier.

      bandwidthv3.txt

      1 Reply Last reply Reply Quote 0
      • M Offline
        myke
        last edited by

        Hi,

        hmm that's a great idea this script!!!

        I will test it and tell you if it's okay.

        Myke.

        1 Reply Last reply Reply Quote 0
        • T Offline
          Tillebeck
          last edited by

          Sorry, I have not tested it yet. I will test too :-)

          1 Reply Last reply Reply Quote 0
          • D Offline
            debremarkos
            last edited by

            Thanks, any feedback would be greatly appreciated :)

            1 Reply Last reply Reply Quote 0
            • D Offline
              debremarkos
              last edited by

              Just to let you know I am currently re writng this in php and getting it more integrated with the existing shaper php functions in pfsense.

              1 Reply Last reply Reply Quote 0
              • D Offline
                debremarkos
                last edited by

                Hi just thought I would let all know of the progress, I noticed alot of people asking for a limiting script so this might be helpful

                I am working on v4 now which will have a better limiting algorithm and post the stats (users, limit, rate) as an xml file for other monitoring programs to read

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cheonne
                  last edited by

                  any update for this?
                  at least having a gui

                  thanks

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    HCJ
                    last edited by

                    how are people getting on with this script ?

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      EricE
                      last edited by

                      @debremarkos:

                      I am working on v4 now which will have a better limiting algorithm and post the stats (users, limit, rate) as an xml file for other monitoring programs to read

                      Hey debremarkos - any update on this?

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        GuHwk97
                        last edited by GuHwk97

                        Hey , This script is unavailable
                        Can anyone repost it ?
                        @EricE @debremarkos @HCJ
                        Thanks

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          divi
                          last edited by

                          Does someone still have this available or a link to an equivalent approach?
                          @GuHwk97 did you find something ?

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