From baa322413918d0ea989ebdaf9c5de64f030794cc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 7 Jul 2012 10:03:25 -0300 Subject: Adding yacy routing to vserver --- 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 fe96c40..4262244 100644 --- a/manifests/subsystems/firewall/vserver.pp +++ b/manifests/subsystems/firewall/vserver.pp @@ -465,3 +465,15 @@ class firewall::vserver::gobby($destination, $zone = 'fw') { order => '2400', } } + +class firewall::vserver::yacy($destination, $zone = 'fw') { + shorewall::rule { 'yacy-0': + action => 'DNAT', + source => 'net', + destination => "$zone:$destination:8090", + proto => 'tcp', + destinationport => '8090', + ratelimit => '-', + order => '2500', + } +} -- cgit v1.2.3