aboutsummaryrefslogtreecommitdiff
path: root/manifests/firewall.pp
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2011-03-11 18:41:05 -0300
committerdrebs <drebs@riseup.net>2011-03-11 18:41:05 -0300
commitf7c1d1a879c81cd5ea328b191ab6729f05a03984 (patch)
tree913e8a0ff05b9dbb6f157acc017d79869775496d /manifests/firewall.pp
parent01b2048dbf02ac726dabde5e846b9d6ac9aff0e6 (diff)
downloadpuppet-bootstrap-f7c1d1a879c81cd5ea328b191ab6729f05a03984.tar.gz
puppet-bootstrap-f7c1d1a879c81cd5ea328b191ab6729f05a03984.tar.bz2
using puppet apply
Diffstat (limited to 'manifests/firewall.pp')
-rw-r--r--manifests/firewall.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/firewall.pp b/manifests/firewall.pp
new file mode 100644
index 0000000..10f5988
--- /dev/null
+++ b/manifests/firewall.pp
@@ -0,0 +1,12 @@
+import "config.pp"
+import "shorewall"
+
+shorewall::rule { "ssh-02":
+ action => 'DNAT',
+ source => 'net',
+ destination => "vm:192.168.0.$context:22",
+ proto => 'tcp',
+ destinationport => "22$id",
+ ratelimit => '-',
+ order => "202",
+}