Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    stv (steve) - tool to parse pfctl output, helps troubleshooting rules & states

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 1 Posters 970 Views 2 Watching
    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.
    • luckman212L Offline
      luckman212 LAYER 8
      last edited by luckman212

      In case it helps anyone, I made a small tool called stv that outputs rule / state information in a format that, at least for me, is useful for troubleshooting.

      github - stv

      You might be wondering, How is this different from pftop?

      Well, pftop is mildly broken at the moment, for one. see forum thread.

      Other than that, stv offers more ways to filter states, and displays (imo) better detail such as the actual rule name (not just an ID) and the interface a state belongs to, plus the state's ID which can be used for killing individual states. Also, stv allows you to filter using regex/wildcard patterns so you can do things like "show me all the states on ix3 that are using port 3389 or 5901" which in stv would be stv '%ix3%.*:(3389|5001) '

      If you have any suggestions or feedback please let me know.

      luckman212L 1 Reply Last reply Reply Quote 2
      • luckman212L Offline
        luckman212 LAYER 8 @luckman212
        last edited by

        Just a small note that I've released v1.3.0 of stv, supporting the new pfctl output format of pfSense+ 25.11 and CE 2.9.0.

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