O'Reilly logo

Learning Puppet Security by Jason Slagle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required