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

pf Tables

Scheduled Pinned Locked Moved Firewalling
3 Posts 2 Posters 594 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.
  • J
    justme2
    last edited by Dec 4, 2018, 2:00 PM

    All,

    What's the 'official' (proper) means in pfSense context to create a table? Coming from a complex FreeBSD + PF setup and trying to translate to pfSense, however have been unable locate anything that suggests how to replicate:

    table <tablename> counters persist "<table file location>"

    Need to 'pin' a table. Purpose is for a type of feed that requires checking source every 60 seconds and adding/removing when a change occurs. That does not mean changes to the table every 60 seconds, but it does infer that when an entry is added removed, that a "pfctl -q -t <tablename> -T replace -f <file>" needs to happen within 60 seconds of the noted change.

    Current mechanism should port over to pfSense with some changes. Problem is trying to determine official/proper method for conversion and the documentation appears to be sparse in this regard. Things needed:

    • how to define a persistent table preferably with counters (in the pfSense "way")
    • where should the table file go?

    Thanks!

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Dec 4, 2018, 2:48 PM

      There isn't a way in the default GUI to make a persist table that you can control in that way. If you make a URL table alias it will get you close, but it would need to pull the content from a URL and doesn't update as often as you need.

      You should look into the pfBlockerNG package, it will probably do what you want in a slightly different way.

      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
      • J
        justme2
        last edited by Dec 4, 2018, 3:34 PM

        I have gone through pfBlocker - was hoping that it might be a "solution", but there are some things for which pfBlocker just isn't the "right" solution. Thanks for the idea, though.

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received