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

PFTop Rules filter syntax

Scheduled Pinned Locked Moved General pfSense Questions
6 Posts 2 Posters 4.5k 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.
  • O
    Orion2030
    last edited by May 30, 2020, 1:47 PM

    I know how to use the syntax just fine for pftop default view from the UI in PFSense. But when I change the view to PFTop rules, the filter expression window remains. It does not matter what filter I place, it does not work. Is there a special syntax to filter on rules while in PFTop rules view ? I have tried proto, src, rule number, interface, etc and nothing has any effect on the 335 rules shows to me in the window below

    V 1 Reply Last reply May 30, 2020, 3:21 PM Reply Quote 0
    • V
      viktor_g Netgate @Orion2030
      last edited by May 30, 2020, 3:21 PM

      @Orion2030 Please show sample filter

      filter like proto tcp and src 192.168.0.123 work fine for me on 2.4.5

      1 Reply Last reply Reply Quote 0
      • O
        Orion2030
        last edited by May 30, 2020, 4:08 PM

        @viktor_g that syntax works fine for the default view. However, it has no effect in the rule view. Also, rnr rulenumber also did not work for me. I tried this both in the UI and in the CLI way with not success.

        V 1 Reply Last reply May 30, 2020, 4:28 PM Reply Quote 0
        • V
          viktor_g Netgate @Orion2030
          last edited by May 30, 2020, 4:28 PM

          @Orion2030 Correct, it works only for states, see https://www.freebsd.org/cgi/man.cgi?query=pftop&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html:

          STATE FILTERING
          The expression filter selects which states will be displayed. It is based
          on the tcpdump filtering language. The following is based on the tcpdump
          manual page, modified for state filtering.

          O 1 Reply Last reply May 30, 2020, 6:05 PM Reply Quote 0
          • O
            Orion2030 @viktor_g
            last edited by May 30, 2020, 6:05 PM

            @viktor_g thank you for confirming this. By your statement and what I see, then there probably should not be a filter text box input when selecting "View:rule" since it does not apply. ... (?) makes it a bit confusing...

            1 Reply Last reply Reply Quote 0
            • V
              viktor_g Netgate
              last edited by Jun 3, 2020, 6:52 AM

              fix: https://redmine.pfsense.org/issues/10625

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