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

    Multiple source to one destionation

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 2 Posters 424 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.
    • N
      nth
      last edited by

      Demand to make rule which will whitelist multiple networks: 71.209.84.0/24, 223.189.151.160/29, … etc (+20) to one destination IP and its PORT.

      Questions is, can this be done by 1 rule? Instead of +20 (always to whitelist one network by one).

      Thanks

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        Add your whitelist in Firewall > Aliases > IP as type networks and set a name for it. You may also import it there if you have all the networks in a list already.
        If the list is downloadable from a http server you may set the URL in Firewall > Aliases > URLs and pfSense will load it and refresh it once a day.

        Then use the alias name as source in your firewall rule.

        1 Reply Last reply Reply Quote 0
        • N
          nth
          last edited by

          Thanks a lot, so it should look like this once I used it in rules:

          http://prntscr.com/jafr2e

          Fine?

          Tnx

          1 Reply Last reply Reply Quote 0
          • V
            viragomann
            last edited by

            Looks fine.

            Remember that this is a pass-rule. So if this rule doesn't match on an incoming packet, but another pass rule downriver does, the packet will be passed anyhow.
            For matching a rule, the protocol, source address + port and the destination address + port are essential.

            1 Reply Last reply Reply Quote 0
            • N
              nth
              last edited by

              All clear, thanks a lot!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.