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

Alias for ip range…

Scheduled Pinned Locked Moved Firewalling
8 Posts 6 Posters 4.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.
  • H
    Hank
    last edited by Mar 23, 2007, 7:38 AM

    How can I create an alias for the ip range 192.168.20.50 … 192.168.21.250 ?

    Or isn't this possible..?

    cheers  hank

    1 Reply Last reply Reply Quote 0
    • S
      sullrich
      last edited by Mar 23, 2007, 4:46 PM

      You could use the net type and use subnet notation to create one.

      IE: 192.168.1.0/24 would be 192.168.1.1-254

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by Mar 23, 2007, 6:54 PM

        Btw, if you can't capture all IPs in networkranges and some single IPs are left add them to the same networks alias as /32 subnets  ;)

        1 Reply Last reply Reply Quote 0
        • M
          mastrboy
          last edited by Mar 27, 2007, 9:37 PM Mar 27, 2007, 7:07 PM

          Address ranges are not necesarilly representable with CIDR, like f eks: i like to block 192.168.1.100-200 but that can't be "created" with a CIDR range. or am i wrong here and need to read upon CIDR ranges?

          1 Reply Last reply Reply Quote 0
          • T
            Tenzen
            last edited by Mar 27, 2007, 9:04 PM Mar 27, 2007, 7:19 PM

            @mastrboy:

            i like to block 192.168.1.100-200

            download & unzip this:

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

            then,

            % perl cidr_range.pl 192.168.1.100 192.168.1.200

            returns:

            192.168.1.100/30
            192.168.1.104/29
            192.168.1.112/28
            192.168.1.128/26
            192.168.1.192/29
            192.168.1.200/32

            then, add those CIDR ranges to a Network alias.

            hth.

            1 Reply Last reply Reply Quote 0
            • J
              jeroen234
              last edited by Mar 27, 2007, 7:23 PM

              blokking .100 till .20 with submask's

              blokking 192.168.1.100/29  gives .100 till .103
              blokking 192.168.1.104/29 gives .104 till .111
              blokking 192.168.1.112/28 gives .112 till 127
              blokking 192.168.1.128/26 gives .128 till .191
              blokking 192.168.1.192/29 gives .192 till .199
              blokking 192.168.1.200/32 gives .200

              1 Reply Last reply Reply Quote 0
              • M
                mastrboy
                last edited by Mar 28, 2007, 6:25 AM Mar 27, 2007, 9:37 PM

                thanks Tenzen, great tool to have :)

                (but still a little annoying to have so many aliases that could have been merged into one  :-\ )

                edit: se below post ;)

                1 Reply Last reply Reply Quote 0
                • S
                  sullrich
                  last edited by Mar 27, 2007, 9:52 PM

                  Thats kinda spiffy.  Would be nice if we had a CIDR lookup tool based on this type of thing.

                  mastrboy: you mean multiple aliases, not rules, eh?  because you just plug all of these into an alias and then reference the alias inside your firewall rule (1 rule required, 1 alias with multiple entries).

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