Forge Home


Configures masquerading on the server


13,235 latest version

4.6 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

  • 0.1.2 (latest)
  • 0.1.1 (deleted)
  • 0.1.0 (deleted)
  • 0.0.1
released Jun 2nd 2015
This version is compatible with:
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'bashtoni-masq', '0.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add bashtoni-masq
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install bashtoni-masq --version 0.1.2

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.

Tags: nat


bashtoni/masq — version 0.1.2 Jun 2nd 2015


####Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module


Configures a machine with masquerading, allowing it to act as a NAT router for other machines

##Module Description

I wrote this module to configure instances as NAT for use inside Amazon VPC, but this could be used anywhere you want masquerading.



This module uses the Puppetlabs firewall module to add the masquerading rules.

As a minimum you need to add:

class { 'firewall': }
class { 'masq': }

If you want to avoid NATing traffic destined for private address space, you can set the parameter 'nat_rfc1918' to false. Note this will prevent and subsequent POSTROUTING rules from being executed.


Linux specific


Please submit pull requests to github -