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

    Question about list, tables and pfctl

    Development
    2
    5
    625
    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.
    • K
      Kei
      last edited by

      Hello everyone,
      I've setup my infrastructure to push via RADIUS (which resides to a different VM) some rules to every user upon OpneVPN connection.
      All works ok, however I've noticed an odd behavior with the command pfctl:

      If the rules pushed by RADIUS are too many, I see this output:

      pfctl -a openvpn/firstname.lastname -sr
      pass in quick on openvpn inet from any to <__automatic_41319fc_0> flags S/SA keep state

      This "automatic_41319fc_0" thingy should be a table, so then I perform:

      pfctl -t automatic_41319fc_0 -T show

      However oddly enough, this is what I get:
      pfctl: Table does not exist.

      Could someone explain why is that?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Do you actually see those rules in /tmp/rules.debug?

        1 Reply Last reply Reply Quote 0
        • K
          Kei
          last edited by

          @stephenw10 said in Question about list, tables and pfctl:

          /tmp/rules.debug

          Apparently I dont see anything related to these rules in this file.
          What bothers me is that if I have only one rule or two I can see them with the pfctl command:

          pfctl -a openvpn/test1 -sr
          pass in quick on openvpn inet from any to 192.168.2.0/24 flags S/SA keep state

          What if I disable the mechanic by wich the rules are summarized? Provided I can / should...

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by stephenw10

            Ah, I see now they are anchors so you would need to drill down to see the tables. So maybe:
            pfctl -a openvpn/test1 -t automatic_41319fc_0 -T show

            There is also a php shell script to drill down all tables:
            pfSsh.php playback pftabledrill

            Steve

            1 Reply Last reply Reply Quote 0
            • K
              Kei
              last edited by Kei

              @stephenw10 said in Question about list, tables and pfctl:

              pfctl -a openvpn/test1 -t automatic_41319fc_0 -T show

              pfctl -a openvpn/test1 -t __automatic_41319fc_0 -T show
              

              did it!!! thank you!!!

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