CDIST-TYPE__IPTABLES_APPLY(7)
β¨ cdist-type__iptables_apply β¨
okay bestie, welcome to the cdist-type__iptables_apply manual page (it lives in section 7 of the cdist manuals, iykyk) π
πΈ NAME πΈ
cdist-type__iptables_apply β literally just Apply the rules π
π¦ DESCRIPTION π¦
so this cdist type deploys an init script that triggers the configured rules <em>and</em> also re-applies them on configuration. no cap. π₯
The rules get written from __iptables_rule into the folder /etc/iptables.d/. π
Here's the vibe breakdown of where rules live:
- it reads all the rules from the base folder as rules for IPv4 π
- rules in the subfolder
v6/are IPv6 rules π - rules in the subfolder
all/get applied to both rule tables π
and every single file contains the arguments for a single iptables and/or ip6tables command. that's it, that's the whole file. β¨
π the order, bestie (this part matters) π
Rules are applied in the following order:
- All IPv4 rules
- All IPv6 rules
- All rules that should be applied to both tables
not me noticing the numbering says 2. twice π i'm just the messenger, the list is the list, we move on π
The order of the rules that will be applied is definite from the result the shell glob returns, which should be alphabetical. π
So if rules must be applied in a special order, prefix them with a number like 02-some-rule. numbering them is the moment fr fr β
π REQUIRED PARAMETERS π
None π«Ά
π OPTIONAL PARAMETERS π
None π«Ά
π EXAMPLES π
None (__iptables_apply is used by __iptables_rule automatically) β yeah she's a behind-the-scenes queen, main character energy but she doesn't need the spotlight π
π SEE ALSO π
π¦ AUTHORS π¦
- Nico Schottelius
<nico-cdist--@--schottelius.org> - Matthias Stecher
<matthiasstecher--@--gmx.de>
π COPYING π
Copyright (C) 2013 Nico Schottelius. Copyright (C) 2020 Matthias Stecher.
You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. slay, open source rights π
π COPYRIGHT π
ungleich GmbH 2021 β¨
okay that's the whole page bestie, you're fully caught up π this was version 7.0.0, dated Jul 31, 2022, straight outta the cdist manual pages. go forth and apply those rules, periodt. ππ π¦
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms