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

    Limiter error

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    35 Posts 6 Posters 9.6k 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.
    • X
      xbipin
      last edited by

      enabling schedules on limiter give the below error

      php: : The command '/sbin/ipfw /tmp/rules.limiter' returned exit code '64', the output was 'Line 1: bad command `bw''
      
      1 Reply Last reply Reply Quote 0
      • X
        xbipin
        last edited by

        after enabling the schedule and i getting the error i set it to none but then all clients which fall under the limiter, pfsense wouldnt send any packet to them other than brodcast, arp and dhcp for some reason, untill i disabled the rules which applied the limiters to them to get them to work again

        1 Reply Last reply Reply Quote 0
        • X
          xbipin
          last edited by

          more detailed info on this, i have a rule under floating tab that sends traffic for those clients to limiter and its on a schedule, so when the clien is during that period and limiter is on all traffic breaks for client, no internet access, as soon as client is outside the schedule period, the rule is disabled and traffic flows without any limits so i guess it seems the limiter went broke, enabling it kills traffic for clients and disabling it makes it work

          1 Reply Last reply Reply Quote 0
          • X
            xbipin
            last edited by

            check this screenshot, says limiter not found where as i was using them till the 9th October snapshot, 10th and onwards it went dead

            CropperCapture[1].jpg
            CropperCapture[1].jpg_thumb

            1 Reply Last reply Reply Quote 0
            • X
              xbipin
              last edited by

              when u add a new limiter, the + button doesnt work and when the mouse is on it shows some html code, screenshot below

              Untitled.jpg
              Untitled.jpg_thumb

              1 Reply Last reply Reply Quote 0
              • X
                xbipin
                last edited by

                it seems the Tue Oct 9 01:55:21 EDT 2012 snapshot has limiter working fine but just deleting a limiter gives the below error but the snaps after that date have limiter broken

                Fatal error: Call to undefined method dnpipe_class::GetName() in /usr/local/www/firewall_shaper_vinterface.php on line 101 
                
                1 Reply Last reply Reply Quote 0
                • P
                  phil.davis
                  last edited by

                  I have all the problems above. Some systems on Wed Oct 10 18:45:43 EDT 2012 and some on Thu Oct 11 18:34:41 EDT 2012 - both have the problem. I had clients from my general DHCP pool matching a limiter to to limit the bandwidth of general "unknown" visitors, phones etc. I had to disable any limiter rules to get the clients functioning from those DHCP pool addresses.
                  I am trying to add a limiter on a test system so I can see what the problems are, but I can't even do that because the "+" button to add a badnwidth on a new limiter does not do anyhting, as xbipin says.
                  https://github.com/bsdperimeter/pfsense/commit/c9ba2f8a92b0e18b891af2049436d4a3a505f9d9 made lots of changes/enhancements to the limiter code. I will have a look to see if there is an obvious typo bug, but it would be really good if the originator can test and fix this stuff. It should be quite easy to load the current snapshot and see the issues above.

                  As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                  If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                  1 Reply Last reply Reply Quote 0
                  • P
                    phil.davis
                    last edited by

                    Made a pull request to fix the mouseover rubbish (code) in the popup. This also makes the Mask field appear again on the GUI, rather than being text in the mouseover popup.
                    I can't see quickly how to make the "+" button give a new/first row when creating a new limiter - hopefully Ermal will look soon and fix it.
                    The pf rule generation seems to have broken due to line 2970 of shaper.inc getting deleted:

                    $pfq_rule = "\npipe ". $this->GetNumber() . " config ";
                    

                    It would become line 3001 when inserted back into the new version of shaper.inc
                    I don't have a suitable system to test this on right away - if someone wants to look at my comment on the original commit and try putting this line back, then please test my theory.

                    As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                    If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                    1 Reply Last reply Reply Quote 0
                    • X
                      xbipin
                      last edited by

                      i tried that line of code and it makes it work partially, the limiter info page atleast doesn't say limiter not found and the reason for that is with that line of code the /tmp/rules.limiter file gets written so limiter comes in action but the problem is its not writing out the config of the limiter properly, below r the contents of another system from 9th October where limiter works and another where with that line of code the config is working but not limiting traffic due to broken config file

                      working config file

                      
                      pipe 1 config  bw 1Kb
                      
                      

                      broken config file

                      
                      pipe 1 config 
                      
                      pipe 2 config 
                      
                      pipe 3 config 
                      
                      pipe 4 config 
                      
                      pipe 5 config 
                      
                      pipe 6 config 
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • X
                        xbipin
                        last edited by

                        found one more bug which can be fixed to make that + button work partially, there is one ' missing in etc/inc/shaper.inc

                        change the below

                        $form .= "![](/themes/{$g[ "" . gettext("add another schedule") . "/></a>";</pre><br /><br />to<br /><pre>$form .= "<img border=")";
                        

                        this will fix adding more schdule button action only when u have one entry already existing but will not work if u create a fresh entry and then click +

                        1 Reply Last reply Reply Quote 0
                        • P
                          phil.davis
                          last edited by

                          I put in a pull request to fix this a couple of days ago, but noone has committed it. I notice that Ermal has just fixed up a line that was accidentally deleted in his commit. Perhaps he will look at the other bugs in this soon and get it sorted. I really don't want to do any upgrades until there is a good looking set of fixes to test.

                          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                          1 Reply Last reply Reply Quote 0
                          • X
                            xbipin
                            last edited by

                            insipte of that bug, limiter config is still not written out properly for it to work so needs more work on the shaper.inc file

                            it seems the config is only written out properly when there is a limiter and schedule is not set to none

                            1 Reply Last reply Reply Quote 0
                            • xanaroX
                              xanaro
                              last edited by

                              @xbipin:

                              it seems the Tue Oct 9 01:55:21 EDT 2012 snapshot has limiter working fine but just deleting a limiter gives the below error but the snaps after that date have limiter broken

                              Fatal error: Call to undefined method dnpipe_class::GetName() in /usr/local/www/firewall_shaper_vinterface.php on line 101 
                              

                              I do not see an Oct 9 snapshot, with a time stamp of 01:55:21 listed, it only goes back as far as 02:21, so it seems only X number of revisions are stored on http://snapshots.pfsense.org

                              Is there any other mirror I can use to download an older snapshot iso?

                              I need to use the 2.1 Snapshot because it resolves a state clearing issue with my asterisk VOIP pc: http://forum.pfsense.org/index.php/topic,43112.msg289336.html#msg289336

                              We have 5 users on our home network and 4 of them like to use netflix and youtube, sometimes concurrently. and our residential connection is only 10 Mbit, when they are doing this the lag gets pretty bad. I was using the limiter to limit traffic on port 80 to 7Mbit, which pretty much solved all our issues.

                              So if anyone knows where I can download an older snapshot please let me know, or if you could please upload the "Tue Oct 9 01:55:21 EDT 2012 snapshot" or an older one, anywhere like rapidshare or whatever, if you still have the iso file on your computer.

                              I would greatly appreciate it.

                              Thank you so much :)

                              1 Reply Last reply Reply Quote 0
                              • X
                                xbipin
                                last edited by

                                try the next snap currently being built, should be ready in an hour or 2, should solve limiter error to some extent, bear in mind, u will need to assign some schedule to each limiter for it to work as of now until the remaining bugs r fixed

                                1 Reply Last reply Reply Quote 0
                                • xanaroX
                                  xanaro
                                  last edited by

                                  Thanks for the reply, I updated, now I am on:

                                  2.1-BETA0 (i386)
                                  built on Thu Oct 18 09:03:11 EDT 2012
                                  FreeBSD 8.3-RELEASE-p4

                                  The place where there used to be a field to enter an amount of bandwidth, the only thing there now is a "+" button and when you hover over it, the tooltip shows "add another schedule" clicking this button does nothing, as if the button is not working.

                                  before trying to click the button I created a schedule under firewall -> schedules and just selected the rest of the days for october with a time of 00:00-23:59 and saved it.

                                  1 Reply Last reply Reply Quote 0
                                  • X
                                    xbipin
                                    last edited by

                                    yes its a known issue, the developers should fix it once they figure it out

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      phil.davis
                                      last edited by

                                      It is still not possible to enter a new limiter, because the Bandwidth "+" button does not make a new empty row.
                                      Is anyone who knows about the limiter code able to look at and fix this?

                                      limiter.png
                                      limiter.png_thumb

                                      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                                      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                                      1 Reply Last reply Reply Quote 0
                                      • jimpJ
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by

                                        Ermal should be back from EuroBSDCon in a day or two, once he's back he can get it fixed up.

                                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          bardelot
                                          last edited by

                                          The JavaScript was missing. I made a patch that adds it. (https://github.com/bsdperimeter/pfsense/pull/241)
                                          You can also manually apply the patch and report if everything is working afterwards.

                                          1 Reply Last reply Reply Quote 0
                                          • jimpJ
                                            jimp Rebel Alliance Developer Netgate
                                            last edited by

                                            Merged it in.

                                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                            Need help fast? Netgate Global Support!

                                            Do not Chat/PM for help!

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