Forge Home

firewall

UNKNOWN

10,126 downloads

10,126 latest version

1.5 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.0 (latest)
released Mar 1st 2012

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'sschneid-firewall', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add sschneid-firewall
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install sschneid-firewall --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

sschneid/firewall — version 1.0.0 Mar 1st 2012

puppet-firewall

My infrastructure setup is pretty simple: all of our VMs are behind a hardware firewall, but I want the added security of iptables running on each individual VM. Generally, I leave only 22/tcp (SSH) and 161/udp (SNMP) open, and otherwise specify an array of other TCP or UDP ports to open within the node definition.

This is the simplest Puppet module I could come up with.

Usage

Sepcify an array of ports to open in 'open_tcp' or 'open_udp' parameters to the 'firewall' class.

A node definition will look like this:

node
    'testvm.company.com'
inherits default {
    class {
        # Here's the magic
        firewall:
            open_tcp => [ "80", "443" ];

        # Other class definitions here...
        app::example:
            docroot  => "/var/www/example",
            gitrepo  => "github:sschneid/example.git";
    }
}