CDIST-TYPE__PF_RULESET(7)
π CDIST-TYPE__PF_RULESET π
okay so bestie, welcome to cdist-type__pf_ruleset, the cdist type whose whole entire job is copying a pf(4) ruleset over to $__target_host. no cap. π¦
β¨ DESCRIPTION β¨
this one lives on *BSD systems and it's the girl who manages the pf firewall's ruleset. she's got main character energy in the packet-filtering department.
and the way that she's also gonna enable and disable the pf firewall for you, exactly as you ask in the state parameter? obsessed. literally does both jobs in one trip. π
πΈ REQUIRED PARAMETERS πΈ
stateβ either"absent"(meaning: no ruleset at all, we're clearing the whole vibe) or"present". and she defaults to"present"if you don't say anything. π
π§ OPTIONAL PARAMETERS π§
sourceβ required wheneverstateis"present", okay?? this is the one that defines the ruleset to load onto the$__target_hostforpf(4). so like, if you want pf on, you gotta hand her the file. periodt. β
π EXAMPLES π
removing the current ruleset in place and disabling pf:
# Remove the current ruleset in place and disable pf
__pf_ruleset --state absent
enabling pf with the ruleset defined in $__manifest/files/pf.conf:
# Enable pf with the ruleset defined in $__manifest/files/pf.conf
__pf_ruleset --state present --source $__manifest/files/pf.conf
see? two lines, both iconic. π
π SEE ALSO π
pf(4) β go read her too, she's the blueprint.
π«Ά AUTHORS π«Ά
Kamila SouΔkovΓ‘ <coding--@--kamila.is> and Jake Guffey <jake.guffey--@--eprotex.com>. absolute legends, both of them. π
π COPYING π
Copyright (C) 2016 Kamila SouΔkovΓ‘. 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. so like, go forth and remix, just keep the license. π
β COPYRIGHT β
ungleich GmbH 2021
version7.0.0, datedJul 31, 2022β and that's the whole page, bestie. pf rules in, pf rules out, firewall toggled, no notes. slay. πβ¨
π¦ 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