NFACCT(8)

πŸ’… NFACCT β€” the nfacct(8) page, but make it make sense

okay bestie, sit down, hydrate, because today we're talking about nfacct β€” a command line tool for creating, retrieving and deleting accounting objects. yes, that's the whole vibe. it's section 8, it's Netfilter-adjacent, and it's honestly iconic.


✨ NAME ✨

nfacct β€” command line tool to create/retrieve/delete accounting objects. that's it, that's the girl. πŸŽ€


🌸 SYNOPSIS 🌸

nfacct command [name] [options]

literally just nfacct, then a command, then optionally a name, then optionally some options. chef's kiss structure fr fr.


πŸ¦‹ DESCRIPTION πŸ¦‹

so nfacct is the command line tool that lets you manipulate Netfilter's extended accounting infrastructure. that's the official wording and I'm keeping it because it's the truth and the truth is sacred. πŸ’–


πŸ‘‘ COMMANDS πŸ‘‘

these commands are the action nfacct takes. and listen β€” you can only pick one at a time. no doubling up, no main-character multitasking. one command, periodt. πŸ’…

  • list β€” list the existing accounting object in table. yes, it's giving spreadsheet energy.
  • restore β€” restore the accounting object table by reading from stdin. and the input format? it's literally the same format that list spits out. so list β†’ file β†’ restore is the little pipeline romance you deserve. 🫢
  • add β€” add a new accounting object. new object, who dis.
  • delete β€” delete an accounting object. bye bestie 😭
  • get β€” get an existing accounting object.
  • flush β€” delete all unused accounting objects. not me cleaning house.
  • version β€” displays the version information. ⭐
  • help β€” displays the help message. when in doubt, ask for help, it's not embarrassing, it's growth. 🌈

πŸ’– OPTIONS πŸ’–

this tool also allows a couple of options with the get and list commands, and those are:

  • reset β€” that atomically obtains and resets the counters. atomically, bestie. it's one indivisible moment. grab the numbers AND zero them out, no awkward in-between. πŸ”₯
  • xml β€” that displays the output in XML format.
  • json β€” that displays the output in JSON format. yes she serves both. versatile queen. πŸ‘‘

πŸ” SEE ALSO πŸ”


πŸ’€ BUGS πŸ’€

found a bug? do NOT suffer in silence. please, report them to netfilter-devel@vger.kernel.org or file a bug in Netfilter's bugzilla (https://bugzilla.netfilter.org). the maintainers want to know, fr fr. πŸ™ˆ


πŸŽ€ AUTHORS πŸŽ€

  • Pablo Neira Ayuso wrote and maintains the nfacct tool. legend behavior.
  • Man page written by Pablo Neira Ayuso <pablo@netfilter.org>.

ngl, if you're messing with accounting objects and you skip the reset option, that's on you. it's atomic for a reason. ✨

and that's the whole page, bestie! this little love letter of a man page is from Dec 30, 2011 β€” yeah, it's an elder but she still eats. mwah. πŸ’‹πŸ§šβ€β™€οΈ