]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
add masquerade sample to test manifest
authorJonathan Boyett <jonathan@failingservers.com>
Wed, 22 Jun 2011 17:23:52 +0000 (10:23 -0700)
committerJonathan Boyett <jonathan@failingservers.com>
Wed, 22 Jun 2011 17:23:52 +0000 (10:23 -0700)
examples/iptables/test.pp

index e8dc156350fb25c34a0114a000ce20188e4ef08f..57eec8648e4404c067eac3ee30efb4d1a35afbf0 100644 (file)
@@ -14,6 +14,15 @@ firewall { '001 allow boo':
   source => "2.2.2.0/24",
 }
 
+firewall { '100 snat for network foo2':
+  chain    => 'POSTROUTING',
+  jump     => 'MASQUERADE',
+  proto    => 'all',
+  outiface => 'eth0',
+  source   => '10.1.2.0/24',
+  table    => 'nat'
+}
+
 firewall { '999 bar':
   dport => "1233",
   proto => "tcp",