summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/virtual/web.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/virtual/web.pp b/manifests/virtual/web.pp
new file mode 100644
index 0000000..e4adfdf
--- /dev/null
+++ b/manifests/virtual/web.pp
@@ -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,
+ }
+}