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

$50 - "IP Range" option for network Aliases

Scheduled Pinned Locked Moved Completed Bounties
8 Posts 2 Posters 15.2k 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.
  • J
    jasonlitka
    last edited by Mar 9, 2010, 3:27 PM

    I'd like to see an "IP Range" option for generating network aliases.  I see this being added to the "Networks" type and having a second button down at the bottom that lets you add a range that is then translated into a list of networks.

    For example, 192.168.1.70-192.168.1.251 would become:

    192.168.1.70/31
    192.168.1.72/29
    192.168.1.80/28
    192.168.1.96/27
    192.168.1.128/26
    192.168.1.192/27
    192.168.1.224/28
    192.168.1.240/29
    192.168.1.248/30

    A perl script (I found elsewhere on the forums) for turning a range into a list of cidr networks is below.

    http://www.irbs.net/internet/postfix/0401/att-3032/cidr_range.pl.gz

    I'll double the amount I've pledged (to $100) if someone is willing to actually add an "IP Range(s)" alias type where ranges can be added, viewed, edited, and deleted as ranges, rather than networks.  I don't care if it's handed as a list of networks on the back-end as long as it's manageable as a list of ranges on the front.

    This project is only available if it can be integrated into all future releases of pfSense.  I'm not interested in commissioning a change that may well break in a month when the next release comes out.  Directions for manual installation on the release version of 1.2.3 are required as part of the deliverable.

    I can break anything.

    1 Reply Last reply Reply Quote 0
    • J
      jasonlitka
      last edited by Mar 9, 2010, 3:40 PM

      Forgot to mention, if the second option is elected, any of the little hover-over tool-tips that are in the Admin GUI when you use an alias should reflect the ranges entered.

      I can break anything.

      1 Reply Last reply Reply Quote 0
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Mar 9, 2010, 5:37 PM Mar 9, 2010, 5:35 PM

        I already added this to 2.0 earlier this week. Feel free to pay me if you want ;-)

        http://forum.pfsense.org/index.php/topic,23431.0.html

        Your option 2 is unfortunately not really feasible, as it doesn't scale well. If someone had lots of ranges, the nature of the algorithm to find the subnets would be very costly in terms of time.

        It's certainly doable, but I wouldn't recommend it.

        I can backport the IP range alias stuff to 1.2.3 I suppose, but the aliases page saw quite a bit of work between releases.

        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
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Mar 9, 2010, 8:19 PM

          I have this working as a patch against 1.2.3 now. I may turn it into a package, that would be the easiest way to install it, rather than having to deal with patching and diffs from the CLI, or overwriting whole files.

          If you want to consider that as completing the bounty, I'll finish it 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
          • J
            jasonlitka
            last edited by Mar 10, 2010, 4:01 PM

            If you want to do this as a package for 1.2.3 and have it built into 2.0 then that's good enough for me.  I don't care that I pay and everyone else gets it for free.

            You've got a PM.

            I can break anything.

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Mar 10, 2010, 5:58 PM

              I'll get a package rolled up, but it may be later tonight or tomorrow before it's done and committed.

              I'll keep you posted.

              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
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Mar 10, 2010, 11:43 PM

                The package has been committed and it seems to work OK on my test box.

                It should show up for everyone on pfSense 1.2.3 as "IP Range Aliases" in the package list.

                I'll post a message to ask for testing in the packages forum either later this evening or tomorrow, to help shake out any more potential bugs.

                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
                • J
                  jasonlitka
                  last edited by Mar 11, 2010, 10:16 PM

                  I installed it on my boxes this morning and it seems, at least for the aliases I've configured so far, to work perfectly.  Thanks again.

                  I can break anything.

                  1 Reply Last reply Reply Quote 0
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                    This community forum collects and processes your personal information.
                    consent.not_received