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

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

    Scheduled Pinned Locked Moved Firewalling
    1 Posts 1 Posters 707 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.
    • luckman212L
      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.

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