FGADM(8)
π FGADM β bestie edition π
ok so this is the man page for fgadm, which lives in section 8 of the System Manager's Manual. it's the filtergen command program β the little command interface that runs your filtergen-based packet filters. yes, packet filters. yes, firewalls. yes, she's that girl. β¨
β¨ NAME β¨
fgadm β the filtergen command program π
π¦ SYNOPSIS π¦
fgadm [ check | reload | save | stop ]
π DESCRIPTION π
fgadm is a simple command interface for managing filtergen(8) based packet filters. that's it. that's the whole vibe. she's not complicated, she's just effective. π«Ά
πΈ USAGE πΈ
so here's the tea, bestie: fgadm can do four things.
- stop existing filters β like, actually turning them off π
- reload new packet filters
- save currently running filters so they stick around for longevity πΎ
- check filter scripts for errors before you reload, because we do not do chaos here π§
the following commands are accepted by fgadm:
checkβ checks the filter script/etc/filtergen/rules.filterfor errors. the generated filter gets printed to standard output, and any errors get printed to standard error. lowkey the most useful one ngl. πreloadβ replaces the current live packet filter with the one in/etc/filtergen/rules.filter. and yes, the script gets tested for errors before reloading, so you don't nuke yourself. iconic behaviour fr fr. π₯saveβ the current live packet filter gets saved in a distribution-friendly way. on Red Hat systems, this saves theiptablesoripchainsfirewall that is currently loaded into the kernel, so it loads at boot with theiptablesoripchainsinitscript. πΎβ¨stopβ flushes the current live packet filter out and puts it in a default accept mode, which means no firewalling will be in place. that's the whole point though β it's useful to abort firewalls in an emergency. emergency stop button energy. π¨
π EXAMPLES π
here's a sequence of commands you might find useful for making firewall changes on live servers. like, genuinely. this is the move. π
# at now + 2 min
warning: commands will be executed using (in order) a) $SHELL b) login
shell c) /bin/sh
at> fgadm stop
at> ^D<EOT>
job 53 at 2004-06-07 17:25
# fgadm check
# fgadm reload
# atq
53
# atrm 53
# fgadm save
the way this schedules a stop two minutes out as a safety net, then checks, then reloads, then cancels the safety net, then saves?? main character firewall maintenance. no cap. π
π FILES π
/etc/filtergen/rules.filter
packet filter descriptions are read from this file when fgadm is used. this is the file. π
/etc/filtergen/fgadm.conf
this file alters the behaviour of filtergen as called from fgadm. β¨
π BUGS π
fgadm savedoes not work on Debian systems withiptablesdue to a lack of common sense in theiptablespackage. π not me being shady in a man page but okay, it's literally in the docs.
π¦ SEE ALSO π¦
filtergen(8)filter_syntax(5)filter_backends(5)
π AUTHOR π
fgadm was written by Jamie Wilkinson <jaq@spacepants.org> for the filtergen package, to ease maintenance of filtergen-based firewalls. king behaviour honestly. π
and that's the whole page, bestie!! this one came out of the System Manager's Manual, dated June 7, 2004 β vintage but still serving looks. go forth and manage your packet filters responsibly π β¨
π¦ where this page comes from
- debian bookworm: filtergen 0.12.8-1+b1
- debian trixie: filtergen 0.12.8-3
- ubuntu jammy: filtergen 0.12.8-1
- ubuntu noble: filtergen 0.12.8-3
- ubuntu questing: filtergen 0.12.8-3
- ubuntu resolute: filtergen 0.12.8-3build1
- ubuntu stonking: filtergen 0.12.8-3build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms