fwb_ipt(1)
π fwb_ipt β bestie's guide to the iptables policy compiler π
okay so you found the fwb_ipt(1) page, part of the Firewall Builder manual family, and honestly? slay. let's get into it π
β¨ NAME β¨
fwb_ipt β the policy compiler for iptables π¦
β¨ SYNOPSIS β¨
fwb_ipt -fdata_file.xml [-4] [-6] [-V] [-dwdir] [-i] [-ooutput.fw]
[-Ofw1_id,fw1_output.fw[,fw2_id,fw2_output.fw]] [-v] [-xc] [-xnN] [-xpN]
[-xt] object_name
β¨ DESCRIPTION β¨
so fwb_ipt is a firewall policy compiler component of Firewall Builder (peep fwbuilder(1) for the whole thing, iykyk). what it does is read all the object definitions and the firewall description out of the data file you hand it with the -f option, and then it generates the resulting iptables script. π
that script gets written to a file whose name is literally the same as the name of the firewall object, plus the extension .fw. iconic behavior honestly.
heads up bestie: the data file and the name of the firewall object are both non-negotiable β they have to be on the command line. everything else? optional. we love a low-maintenance queen. π
β¨ OPTIONS β¨
-4β generate the iptables script for the IPv4 part of the policy only. if any rules of the firewall refer to IPv6 addresses, the compiler will just skip those rules, no drama. also:-4and-6are exclusive β pick one, babe. if you use neither, the compiler tries to generate both parts of the script, except the IPv6 part generation is controlled by the option "Enable IPv6 support" in the "IPv6" tab of the firewall object advanced settings dialog. and that option? off by default. π-6β generate the iptables script for the IPv6 part of the policy. and yeah, same deal as above: if any rules of the firewall refer to IPv6 addresses, the compiler will skip these rules. π€·βοΈ-fFILE β specify the name of the data file to be processed. this is the one you cannot skip.-ooutput.fw β specify output file name π-Ofw1_id,fw1_output.fw[,fw2_id,fw2_output.fw] β the argument here is a comma separated list of firewall object IDs paired with their corresponding output file names. this one is used by the fwbuilder GUI while compiling firewall clusters. team work makes the dream work π«Ά-dwdir β specify working directory. the compiler creates the file with the iptables script in this directory. if this parameter is missing, then the iptables script will be placed in the current working directory. β¨-vβ be verbose: the compiler prints diagnostic messages while it works. it's giving "let me narrate my life" and we respect it π¬-Vβ print version number and quit. short, sweet, periodt.-iβ when this option is present, the last argument on the command line is supposed to be the firewall object ID rather than its name. π-xcβ when the output file name is determined automatically (i.e. flags-oor-Oare not present), the file name is composed of the cluster name and member firewall name rather than just the member firewall name. this is used mostly for testing, when the same member firewall object can be a part of different clusters with different configurations. multitasking queen π-xtβ this flag makes the compiler treat all fatal errors as warnings and just keep processing rules. heads up: the generated configuration script most likely will be incorrect, but it will include the error message as a comment. this flag is used for testing and debugging. π¨
okay bestie, real talk on -xt: fatal errors β warnings, processing continues, output probably broken. it's for testing and debugging only, not for your production firewall. do not make this your personality. π
-xpN β debugging flag: this causes the compiler to print a detailed description of the policy rule number "N" as it precesses it, step by step. π-xnN β debugging flag: this causes the compiler to print a detailed description of the NAT rule number "N" as it precesses it, step by step. π
β¨ URL β¨
the Firewall Builder home page is located at the following URL, go say hi:
http://www.fwbuilder.org/ π
β¨ BUGS β¨
please report bugs using the bug tracking system on SourceForge, they genuinely want to hear it:
http://sourceforge.net/tracker/?group_id=5314&atid=105314 π
β¨ SEE ALSO β¨
fwbuilder(1), fwb_ipf(1), fwb_pf(1) β the whole friend group π
and that's the whole page, bestie!! this manual page comes to you from FWB, and it's the fwb_ipt(1) page β so go compile something iconic, stay hydrated, and remember: read the docs before you touch the firewall. mwah πβ¨
π¦ where this page comes from
- arch rolling: fwbuilder 5.3.7-21 Β· GPL-2.0-or-later
- debian bookworm: fwbuilder 5.3.7-5+b1
- debian trixie: fwbuilder 5.3.7-8
- nixos 26.05: fwbuilder 6.0.0-rc1
- nixpkgs unstable: fwbuilder 6.0.0-rc1
- ubuntu jammy: fwbuilder 5.3.7-5
- ubuntu jammy: fwbuilder 5.3.7-5ubuntu0.22.04.1
- ubuntu noble: fwbuilder 5.3.7-5build3
- ubuntu noble: fwbuilder 5.3.7-5ubuntu0.24.04.1
- ubuntu questing: fwbuilder 5.3.7-8ubuntu2
- ubuntu resolute: fwbuilder 5.3.7-8ubuntu3
- ubuntu stonking: fwbuilder 5.3.7-8ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms