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

    Aliases - best practice for multiple host subnets

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 579 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.
    • D
      DennisT
      last edited by

      I want to block several subnets so I set up a alias.  When I add a network such as
      5.101.40.0/24
      The GUI translates that to single addresses instead of a subnet.  This works, but after a few subnets the list of addresses in the alias starts getting pretty long.  Is there a better way I should be approaching this?  One subnet per alias and then use a "master" alias?  Is there a limit to how many individual addresses I should use per alias?

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

        huh? Where are you seeing that as single address an not a network?

        net_alias.png
        net_alias.png_thumb

        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
          DennisT
          last edited by

          Thanks for the screenshot.  I didn't realize I could set it to networks.  I had it set to hosts and when I would enter a subnet EG 5.101.40.0/24, it would expand that to 5.101.40.24, 5.101.40.0, 5.101.40.1, etc with 5.101.40.24 showing twice.

          The 24 address twicw is probably a bug but I now understand what it was doing and a much better way to manage subnets.

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

            Not sure what you mean by 24 twice?  But when you pick hosts it states that if you put IPs in via a range or mask that they will be expanded

            "An IP range such as 192.168.1.1-192.168.1.10 or a small subnet such as 192.168.1.16/28 may also be entered and a list of individual IP addresses will be generated."

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