]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Small example for MASQUERADE.
authorKen Barber <ken@bob.sh>
Mon, 20 Jun 2011 22:30:01 +0000 (23:30 +0100)
committerKen Barber <ken@bob.sh>
Mon, 20 Jun 2011 22:30:01 +0000 (23:30 +0100)
README.markdown

index 15c640cbb7d9bbf5754fb9e9363d92a0e742cfcd..bb390a6911040281c20e2dc2af8887d00205cb63 100644 (file)
@@ -37,6 +37,17 @@ Deny all:
       jump => "DENY",
     }
 
+Source NAT example (perfect for a virtualization host):
+
+    firewall { '100 snat for network foo2':
+      chain  => 'POSTROUTING',
+      jump   => 'MASQUERADE',
+      proto  => 'all',
+      outiface => "eth0",
+      source => ['10.1.2.0/24'],
+      table  => 'nat',
+    }
+
 ### Supported firewalls
 
 Currently we support: