diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-06-09 17:23:32 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-06-09 17:23:32 -0300 |
commit | 059ddc10d09b87f1e21807d0aedff08745f8701a (patch) | |
tree | 7cb625d15a0a2a038b433050fe514c0e39f93819 | |
parent | 880f1beca453754a14ade7ee0e2dc2af0fb71abb (diff) | |
download | puppet-firewall-059ddc10d09b87f1e21807d0aedff08745f8701a.tar.gz puppet-firewall-059ddc10d09b87f1e21807d0aedff08745f8701a.tar.bz2 |
Adds firewall::virtual::web
-rw-r--r-- | manifests/virtual/web.pp | 14 |
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, + } +} |