From 8c41ba01c67fb3f5317a55d7c4657de037f3ed32 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 14 Mar 2010 23:03:15 +0000 Subject: Adding additional rules for puppetmaster --- manifests/init.pp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index 6ce7eb0..2cfc2da 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -455,6 +455,48 @@ class nodo::vserver inherits nodo { ratelimit => '-', order => '703', } + + shorewall::rule { 'puppetmaster-5': + action => 'DNAT', + source => 'net', + destination => "fw:192.168.0.$context:8141", + proto => 'tcp', + destinationport => '8141', + ratelimit => '-', + order => '704', + } + + shorewall::rule { 'puppetmaster-6': + action => 'DNAT', + source => 'net', + destination => "fw:192.168.0.$context:8141", + proto => 'udp', + destinationport => '8141', + ratelimit => '-', + order => '705', + } + + shorewall::rule { 'puppetmaster-7': + action => 'DNAT', + source => '$FW', + destination => "fw:192.168.0.$context:8141", + proto => 'tcp', + destinationport => '8141', + originaldest => "$ipaddress", + ratelimit => '-', + order => '706', + } + + shorewall::rule { 'puppetmaster-8': + action => 'DNAT', + source => '$FW', + destination => "fw:192.168.0.$context:8141", + proto => 'udp', + destinationport => '8141', + originaldest => "$ipaddress", + ratelimit => '-', + order => '707', + } } if $gitd { -- cgit v1.2.3