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

    Defining a table with normal and negated ips and ranges

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 588 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
      mentesan
      last edited by

      How can I define a table like this:

      table <my_table>{0.0.0.0/0
      !0.0.0.0/8
      !10.0.0.0/8
      !172.16.0.0/12
      !192.168.0.0/16
      !169.254.0.0/16
      !240.0.0.0/4
      }

      More specifically I  need to setup a table with 0/0, with all non routable nets negated, but I can't add 0/0 to a table.

      Thanks in advance,
      Fabio Almeida</my_table>

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        You can't negate table entries inside of a table. Create the table you want, then negate it in the rule where you're using it.

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