From 6f37ee6f59a8061a25b39254ced977c34a27a785 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 27 Sep 2012 14:32:55 -0300 Subject: Adding firewall::vserver::rsync --- manifests/subsystems/firewall/vserver.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'manifests/subsystems') 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', + } +} -- cgit v1.2.3