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

    Rate not showing last number of IP address

    Scheduled Pinned Locked Moved pfSense Packages
    8 Posts 7 Posters 3.1k 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.
    • B
      bartigas
      last edited by

      I just installed the Rate package and it doesn't show the last number of the IP address. For instance my local ip is 192.168.100.212 and it shows up as 192.168.100.21  Anyone else have this problem?

      1 Reply Last reply Reply Quote 0
      • W
        w1ll14m
        last edited by

        same here

        1 Reply Last reply Reply Quote 0
        • M
          maddhat
          last edited by

          Any update on this issue?  I'm experiencing this as well.  Any info greatly appreciated!

          1 Reply Last reply Reply Quote 0
          • M
            maddhat
            last edited by

            bump.. really hoping this can be resolved  :-\

            1 Reply Last reply Reply Quote 0
            • A
              akoei
              last edited by

              same… no update?

              1 Reply Last reply Reply Quote 0
              • J
                Jack Zielke
                last edited by

                This is an off-by one bug in the rate program.

                Grab the code from http://s-tech.elsat.net.pl/bmtools/ and change 2 lines in rate_abusers.c.  There are two lines with "65 * 2" in them.  Change both to "64 * 2" and compile.  Place the rate binary in /usr/local/bin/

                Line 106:
                Change

                
                                        snprintf(indent, 100, customize_format(opt_cols * 2, 65 * 2, "%%-%d.%ds"), "");
                
                

                to

                
                                        snprintf(indent, 100, customize_format(opt_cols * 2, 64 * 2, "%%-%d.%ds"), "");
                
                

                Line 154:
                change

                
                                                printf(customize_format(opt_cols * 2, 65 * 2, "%%s%%-%d.%ds %%s%%7s %%s%%7s%%c%%s%%7s %%s%%7s%%c%%s%%7s %%s%%7s%%c%%s%%7s %%s%%7s%%s\n"),
                
                

                to

                
                                                printf(customize_format(opt_cols * 2, 64 * 2, "%%s%%-%d.%ds %%s%%7s %%s%%7s%%c%%s%%7s %%s%%7s%%c%%s%%7s %%s%%7s%%c%%s%%7s %%s%%7s%%s\n"),
                
                
                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  I know this is an old thread but I just saw it mentioned somewhere. I recompiled the rate package with that patch, can someone who was having this problem reinstall the package and try it again?

                  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
                  • D
                    DWAyotte
                    last edited by

                    I installed it fresh a few minutes ago and see all 4 octets.

                    I do however see that the rate that is displayed is pretty inaccurate for whatever reason.

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