.\" Man page generated from reStructuredText. . .TH "CDIST-TYPE__IPTABLES_APPLY" "7" "Feb 07, 2021" "6.9.4" "cdist" . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH NAME .sp cdist\-type__iptables_apply \- Apply the rules .SH DESCRIPTION .sp This cdist type deploys an init script that triggers the configured rules and also re\-applies them on configuration. Rules are written from __iptables_rule into the folder \fB/etc/iptables.d/\fP\&. .sp It reads all rules from the base folder as rules for IPv4. Rules in the subfolder \fBv6/\fP are IPv6 rules. Rules in the subfolder \fBall/\fP are applied to both rule tables. All files contain the arguments for a single \fBiptables\fP and/or \fBip6tables\fP command. .sp Rules are applied in the following order: 1. All IPv4 rules 2. All IPv6 rules 2. All rules that should be applied to both tables .sp The order of the rules that will be applied are definite from the result the shell glob returns, which should be alphabetical. If rules must be applied in a special order, prefix them with a number like \fB02\-some\-rule\fP\&. .SH REQUIRED PARAMETERS .sp None .SH OPTIONAL PARAMETERS .sp None .SH EXAMPLES .sp None (__iptables_apply is used by __iptables_rule automatically) .SH SEE ALSO .sp \fBcdist\-type__iptables_rule\fP(7), \fBiptables\fP(8) .SH AUTHORS .sp Nico Schottelius <\fI\%nico\-cdist\-\-@\-\-schottelius.org\fP> Matthias Stecher <\fI\%matthiasstecher\-\-@\-\-gmx.de\fP> .SH COPYING .sp 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. .SH COPYRIGHT ungleich GmbH 2020 .\" Generated by docutils manpage writer. .