summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-09 17:23:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-09 17:23:32 -0300
commit059ddc10d09b87f1e21807d0aedff08745f8701a (patch)
tree7cb625d15a0a2a038b433050fe514c0e39f93819
parent880f1beca453754a14ade7ee0e2dc2af0fb71abb (diff)
downloadpuppet-firewall-059ddc10d09b87f1e21807d0aedff08745f8701a.tar.gz
puppet-firewall-059ddc10d09b87f1e21807d0aedff08745f8701a.tar.bz2
Adds firewall::virtual::web
-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,
+ }
+}