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

    How to block a large IP range?

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 4 Posters 1.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.
    • M
      magmatic
      last edited by

      I want to block a large range, say 74.125.0.0 through 74.125.255.255  How do I do this?  I tried making it an alias, but I got an error message "Range is too large to expand into individual host IP addresses (74.125.0.0-74.125.255.255) The maximum number of entries in an alias is 5000".

      Any ideas?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        For your example why do you need to create an alias just use network either direct in the rule or via an alias

        74.125.0.0/16 or mask 255.255.0.0 is that netblock.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          @magmatic:

          I tried making it an alias, but I got an error message "Range is too large to expand into individual host IP addresses (74.125.0.0-74.125.255.255) The maximum number of entries in an alias is 5000".

          Which version? What type of alias? Just tested with 2.3.4 snapshot and IP network-type alias and it got translated to 74.125.0.0/16 perfectly fine without any error.

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

            If you use a host-type alias it tries to expand that into individual IP addresses.

            Have to use a Network type alias.

            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 1
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.