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:

  1. All IPv4 rules
  2. All IPv6 rules
  3. 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 πŸ’–


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