summaryrefslogtreecommitdiff
path: root/manifests/virtual/web.pp
blob: e4adfdfc78138eecdf89f4ee744c0657af432cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
define firewal::virtual::web(
  $destination
) {
  shorewall::rule { "web-route-${name}-1":
    action          => 'DNAT',
    source          => 'vm',
    destination     => "fw:${destination}:80",
    proto           => 'tcp',
    destinationport => '80',
    originaldetst   => $destination,
    ratelimit       => '-',
    order           => 600,
  }
}