order => "4$id",
}
+ shorewall::rule { "munin-$context":
+ action => 'DNAT',
+ source => '$FW',
+ destination => "fw:192.168.0.$context:49$id",
+ proto => 'tcp',
+ destinationport => "49$id",
+ originaldest => "$ipaddress",
+ ratelimit => '-',
+ order => "5$id",
+ }
+
if $proxy {
shorewall::rule { 'http-route-1':
action => 'DNAT',
proto => 'tcp',
destinationport => '80',
ratelimit => '-',
- order => '500',
+ order => '600',
}
shorewall::rule { 'http-route-2':
destinationport => '80',
originaldest => "$ipaddress",
ratelimit => '-',
- order => '501',
+ order => '601',
}
shorewall::rule { 'https-route-1':
proto => 'tcp',
destinationport => '443',
ratelimit => '-',
- order => '502',
+ order => '602',
}
shorewall::rule { 'https-route-2':
destinationport => '443',
originaldest => "$ipaddress",
ratelimit => '-',
- order => '502',
+ order => '602',
}
}
proto => 'tcp',
destinationport => '8140',
ratelimit => '-',
- order => '600',
+ order => '700',
}
shorewall::rule { 'puppetmaster-2':
proto => 'udp',
destinationport => '8140',
ratelimit => '-',
- order => '601',
+ order => '701',
}
shorewall::rule { 'puppetmaster-3':
destinationport => '8140',
originaldest => "$ipaddress",
ratelimit => '-',
- order => '602',
+ order => '702',
}
shorewall::rule { 'puppetmaster-4':
destinationport => '8140',
originaldest => "$ipaddress",
ratelimit => '-',
- order => '603',
+ order => '703',
}
}
proto => 'tcp',
destinationport => '9418',
ratelimit => '-',
- order => '700',
+ order => '800',
}
shorewall::rule { 'git-daemon-2':
action => 'DNAT',
source => '$FW',
- destination => "vm:192.168.0.$context:9418",
+ destination => "fw:192.168.0.$context:9418",
proto => 'tcp',
destinationport => '9418',
+ originaldest => "$ipaddress",
ratelimit => '-',
- order => '701',
+ order => '801',
}
}
proto => 'tcp',
destinationport => '8000',
ratelimit => '-',
- order => '800',
+ order => '900',
}
shorewall::rule { 'icecast-2':
action => 'DNAT',
source => '$FW',
- destination => "vm:192.168.0.$context:8000",
+ destination => "fw:192.168.0.$context:8000",
proto => 'tcp',
destinationport => '8000',
+ originaldest => "$ipaddress",
ratelimit => '-',
- order => '801',
+ order => '901',
}
}
}