aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/subsystems/firewall/vserver.pp12
-rw-r--r--manifests/vserver.pp8
2 files changed, 19 insertions, 1 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',
+ }
+}
diff --git a/manifests/vserver.pp b/manifests/vserver.pp
index aa864ed..de2b2ef 100644
--- a/manifests/vserver.pp
+++ b/manifests/vserver.pp
@@ -48,7 +48,7 @@ class nodo::vserver inherits nodo {
$icecast = false, $sound = false, $tor = false,
$ticket = false, $memory_limit = false, $distro = 'squeeze',
$dns = false, $munin_port = false, $monkeysphere_ssh_port = false,
- $jabber = false, $mumble = false, $gobby = false, $yacy = false) {
+ $jabber = false, $mumble = false, $gobby = false, $yacy = false, $rsync = false) {
# set instance id
if $context <= 9 {
@@ -223,6 +223,12 @@ class nodo::vserver inherits nodo {
"firewall::vserver::yacy": destination => "192.168.0.$context";
}
}
+
+ if $rsync {
+ class {
+ "firewall::vserver::rsync": destination => "192.168.0.$context";
+ }
+ }
}
}
}