aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-09-27 14:32:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-09-27 14:32:55 -0300
commit6f37ee6f59a8061a25b39254ced977c34a27a785 (patch)
tree7e30c78f81fbb32a042dcaca4cbf00624de2fb6e /manifests/subsystems
parent3848bb004f97b9ec99002f18b1d4c32fda862cbb (diff)
downloadpuppet-nodo-6f37ee6f59a8061a25b39254ced977c34a27a785.tar.gz
puppet-nodo-6f37ee6f59a8061a25b39254ced977c34a27a785.tar.bz2
Adding firewall::vserver::rsync
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/firewall/vserver.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/subsystems/firewall/vserver.pp b/manifests/subsystems/firewall/vserver.pp
index 4262244..c244e09 100644
--- a/manifests/subsystems/firewall/vserver.pp
+++ b/manifests/subsystems/firewall/vserver.pp
@@ -477,3 +477,15 @@ class firewall::vserver::yacy($destination, $zone = 'fw') {
order => '2500',
}
}
+
+class firewall::vserver::rsync($destination, $zone = 'fw') {
+ shorewall::rule { 'rsync-0':
+ action => 'DNAT',
+ source => 'net',
+ destination => "$zone:$destination:873",
+ proto => 'tcp',
+ destinationport => '873',
+ ratelimit => '-',
+ order => '2600',
+ }
+}