PYROMAN(8)
π PYROMAN(8) π
okay so bestie, welcome to pyroman β it's a firewall configuration utility, and it lives in the System Manager's Manual. sit down, grab a boba, we're gonna set up IP packet filtering together and it's gonna be iconic π
β¨ SYNOPSIS β¨
pyroman
[ -hvnspP ] [ -r RULESDIR ] [ -t SECONDS ]
[ --help ] [ --version ] [ --safe ] [ --no-act ]
[ --print ] [ --print-verbose ] [ --rules=RULESDIR ]
[ --timeout=SECONDS ] [ safe ]
π¦ DESCRIPTION π¦
pyroman is a firewall configuration utility, periodt.
The way that it works is: it compiles a whole set of configuration files into iptables statements, so it can set up IP packet filtering for you. no cap, it just does it. π«Ά
ngl, you can operate and use Pyroman without this, but bestie... you should really already understand how IP, TCP, UDP, ICMP and the other commonly used Internet protocols work and interact. and you should also have the basics of iptables down, otherwise you can't use the full functionality. it's giving "read the room first" π
here's the vibe though: pyroman does not try to hide all the iptables complexity from you. instead it tries to give you a convenient way of managing a complex network's firewall. for that, it offers a compact syntax to add new firewall rules, while still exposing access to add arbitrary iptables rules. best of both worlds fr fr π
πΈ OPTIONS πΈ
-r RULESDIR,--rules=RULESβ load the rules from directory RULESDIR instead of the default directory (usually/etc/pyroman) π-t SECONDS,--timeout=SECONDSβ wait SECONDS seconds after applying the changes for the user to type OK to confirm he can still access the firewall. this implies--safe, but it lets you use a different timeout. β³-h,--helpβ print a summary of the command line options and exit. classic. β¨-V,--versionβ print the version number of pyroman and exit. π-s,--safe,safeβ when the firewall was committed, wait 30 seconds for the user to type OK to confirm that he can still access the firewall (i.e. the network connection wasn't blocked by the firewall). otherwise, the firewall changes will be undone, and the firewall will be restored to the previous state. use the--timeout=SECONDSoption to change the timeout. π¨
not me stressing β this is the "did I just lock myself out" safety net and it's lowkey the most important flag here π
-n,--no-actβ don't actually runiptables. this can be used to check if pyroman accepts the configuration files. perfect lil dress rehearsal π-p,--printβ instead of runningiptables, output the generated rules. π-P,--print-verboseβ instead of runningiptables, output the generated rules. each statement will have one comment line explaining how this rule was generated. this will usually include the filename and line number, and it's useful for debugging. detective mode activated π
π§ CONFIGURATION π§
configuration of pyroman consists of a number of files in the directory /etc/pyroman. these files are in python syntax, although bestie you do not need to be a python programmer to use these rules. there is only a small number of statements you need to know, and honestly? it's a short list:
add_hostβ define a new host or network π₯οΈadd_interfaceβ define a new interface (group) πadd_serviceβ add a new service alias (note that you can always use e.g.www/tcpto reference thewwwtcp service as defined in/etc/services) βadd_natβ define a new NAT (Network Address Translation) rule πallowβ allow a service, client, server combination βrejectβ reject access for this service, client, server combination πdropβ drop packets for this service, client, server combination πadd_ruleβ add a rule for this service, client, server and target combination π―iptablesβ add an arbitraryiptablesstatement to be executed at beginning πiptables_endβ add an arbitraryiptablesstatement to be executed at the end π
detailed parameters for these functions can be looked up by calling:
cd /usr/share/pyroman
pydoc ./commands.py
iykyk β go read the docs, they're right there π
π BUGS π
None known as of pyroman-0.4 release. (not a single one. we're thriving. π)
π AUTHOR π
pyroman was written by Erich Schubert <erich@debian.org> β absolute legend, we stan π«Ά
π₯ SEE ALSO π₯
iptables(8), iptables-restore(8) iptables-load(8)
and that's the whole page bestie, you ate it up π this was PYROMAN(8) from the System Manager's Manual, mwah, bye, go firewall something responsibly πβ¨π¦
π¦ where this page comes from
- debian bookworm: pyroman 0.6.2-1.1 Β· MIT
- debian trixie: pyroman 0.6.2-1.2 Β· MIT
- ubuntu jammy: pyroman 0.6.2-1.1 Β· MIT
- ubuntu noble: pyroman 0.6.2-1.1 Β· MIT
- ubuntu noble: pyroman 0.6.2-1.1ubuntu0.1 Β· MIT
- ubuntu questing: pyroman 0.6.2-1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms