Creating pre and post rules
Over the years, a good pattern to deal with firewall rules has emerged. This pattern uses the concept of a class that is applied before and after all other firewall rules. This allows us to set up rules that are in place before any other—allowing local packets, and so on. We can also add our default rule to the post rules.
If you follow the directions on the puppetlabs/firewall website at https://forge.puppetlabs.com/puppetlabs/firewall, it instructs you on how to set up pre
and post rules. We'll be using a modified version of this procedure since we're not going to be managing every resource on our system.
The module instructions assume that you want the module applied to all hosts. As such, they will purge firewall ...
Get Learning Puppet Security now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.