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 fromstdin. and the input format? it's literally the same format thatlistspits out. solistβ file βrestoreis 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 π
iptables(8)β go read that one too, iykyk.
π 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
nfaccttool. 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. ππ§ββοΈ
π¦ where this page comes from
- arch rolling: nfacct 1.0.2-5 Β· GPL2
- debian bookworm: nfacct 1.0.2-3 Β· LGPL-2.1-or-later
- debian trixie: nfacct 1.0.2-4 Β· LGPL-2.1-or-later
- ubuntu jammy: nfacct 1.0.2-3 Β· LGPL-2.1-or-later
- ubuntu noble: nfacct 1.0.2-4 Β· LGPL-2.1-or-later
- ubuntu questing: nfacct 1.0.2-4
- ubuntu resolute: nfacct 1.0.2-4build1 Β· LGPL-2.1-or-later
- ubuntu stonking: nfacct 1.0.2-4build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms