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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access