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

    Slash notation, aliases and multiple networks

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 375 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.
    • A
      awsiemieniec
      last edited by

      I have a smarthost that sends me email from any server within a IP in a /22 block of IPs.  Same smart host has another subnet that needs to send me emails in a /27 block of IPs.  My firewall alias is setup with two networks defined: xxx.xxx.xxx.xxx/22 and yyy.yyy.yyy.yyy/27.

      Now in another alias I want to reference the already defined (above) alias but I have to give it a slash notation, too, since this alias is made up of networks, too.  What would the correct slash notation be for adding the the /22 and /27 networks in the alias made of up of other aliases?  … i'm not doing a good job of explaining the problem so maybe below example will help:

      smarthost_alias:
      xxx.xxx.xxx.xxx/22
      yyy.yyy.yyy.yyy/27

      Accept_Mail_From_alias:
      smarthost_alias/???
      client_A/32
      client_B/32
      etc...

      Thanks.

      Aaron ???

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

        I'm guessing a /21

        A /22 has 1024 IPs
        A /27 has 32 IPs

        If I want to capture all 1056 IPs, the closest slash notation would a /21 which has 2048 IPs.

        Just a guess.
        ???

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

          when you nest aliases, the CIDR is ignored on that line.

          Just enter the alias name, it will figure out the rest internally.

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