cdist-web/src/extra/manual/beta/_sources/man7/cdist-type__pf_ruleset.rst.txt

60 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-04-23 18:55:23 +00:00
cdist-type__pf_ruleset(7)
=========================
NAME
----
cdist-type__pf_ruleset - Copy a pf(4) ruleset to $__target_host
DESCRIPTION
-----------
This type is used on \*BSD systems to manage the pf firewall's ruleset.
2020-05-01 11:11:40 +00:00
It will also enable and disable the pf firewall as requested in the `state`
parameter.
2019-04-23 18:55:23 +00:00
REQUIRED PARAMETERS
-------------------
state
Either "absent" (no ruleset at all) or "present", defaults to "present".
OPTIONAL PARAMETERS
-------------------
source
2020-05-01 11:11:40 +00:00
Required when state is "present".
Defines the ruleset to load onto the $__target_host for `pf(4)`.
2019-04-23 18:55:23 +00:00
EXAMPLES
--------
.. code-block:: sh
2020-05-01 11:11:40 +00:00
# Remove the current ruleset in place and disable pf
2019-04-23 18:55:23 +00:00
__pf_ruleset --state absent
2020-05-01 11:11:40 +00:00
# Enable pf with the ruleset defined in $__manifest/files/pf.conf
2019-04-23 18:55:23 +00:00
__pf_ruleset --state present --source $__manifest/files/pf.conf
SEE ALSO
--------
:strong:`pf`\ (4)
AUTHORS
-------
2020-05-01 11:11:40 +00:00
Kamila Součková <coding--@--kamila.is>
2019-04-23 18:55:23 +00:00
Jake Guffey <jake.guffey--@--eprotex.com>
COPYING
-------
2020-05-01 11:11:40 +00:00
Copyright \(C) 2016 Kamila Součková.
2019-04-23 18:55:23 +00:00
Copyright \(C) 2012 Jake Guffey. 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.