From fb4b9946ac9adeda2da07d80e65b56a0cf897339 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 11 Aug 2011 14:11:20 -0300 Subject: Rollback git rules --- manifests/subsystems/firewall.pp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'manifests/subsystems/firewall.pp') diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp index 6da94f5..269d645 100644 --- a/manifests/subsystems/firewall.pp +++ b/manifests/subsystems/firewall.pp @@ -445,16 +445,27 @@ class firewall::router::puppetmaster($destination, $puppetmaster_port = '8140', } } -class firewall::router::gitd($destination, $zone = 'vm') { - shorewall::rule { 'git-daemon': +class firewall::router::gitd($destination, $zone = 'fw') { + shorewall::rule { 'git-daemon-1': action => 'DNAT', - source => 'all', + source => 'net', destination => "$zone:$destination:9418", proto => 'tcp', destinationport => '9418', ratelimit => '-', order => '800', } + + shorewall::rule { 'git-daemon-2': + action => 'DNAT', + source => '$FW', + destination => "$zone:$destination:9418", + proto => 'tcp', + destinationport => '9418', + originaldest => "$ipaddress", + ratelimit => '-', + order => '801', + } } class firewall::router::icecast($destination, $zone = 'vm') { -- cgit v1.2.3