]> gitweb.fluxo.info Git - puppet-firewall.git/commitdiff
Adds firewall::virtual::web
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 9 Jun 2016 20:23:32 +0000 (17:23 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 9 Jun 2016 20:23:32 +0000 (17:23 -0300)
manifests/virtual/web.pp [new file with mode: 0644]

diff --git a/manifests/virtual/web.pp b/manifests/virtual/web.pp
new file mode 100644 (file)
index 0000000..e4adfdf
--- /dev/null
@@ -0,0 +1,14 @@
+define firewal::virtual::web(
+  $destination
+) {
+  shorewall::rule { "web-route-${name}-1":
+    action          => 'DNAT',
+    source          => 'vm',
+    destination     => "fw:${destination}:80",
+    proto           => 'tcp',
+    destinationport => '80',
+    originaldetst   => $destination,
+    ratelimit       => '-',
+    order           => 600,
+  }
+}