summaryrefslogtreecommitdiff
path: root/puppet/modules/site_shorewall/manifests/dnat.pp
blob: a73294ccfa4aca3bbd2435790f13f2bd60e8ffb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
define site_shorewall::dnat (
  $source,
  $destination,
  $proto,
  $destinationport,
  $originaldest ) {


  shorewall::rule {
    "dnat_${name}_${destinationport}":
      action          => 'DNAT',
      source          => $source,
      destination     => $destination,
      proto           => $proto,
      destinationport => $destinationport,
      originaldest    => $originaldest,
      order           => 200
  }
}