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

Question about list, tables and pfctl

Scheduled Pinned Locked Moved Development
5 Posts 2 Posters 635 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.
  • K
    Kei
    last edited by Oct 6, 2019, 1:32 PM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by Oct 6, 2019, 3:30 PM

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

      1 Reply Last reply Reply Quote 0
      • K
        Kei
        last edited by Oct 6, 2019, 9:05 PM

        @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
        • S
          stephenw10 Netgate Administrator
          last edited by stephenw10 Oct 6, 2019, 10:15 PM Oct 6, 2019, 10:12 PM

          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 Oct 7, 2019, 12:09 AM Oct 7, 2019, 12:08 AM

            @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
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received