summaryrefslogtreecommitdiff
path: root/puppet/modules/site_shorewall/manifests/dnat.pp
blob: 5992c91f8397919dfa61bf3fa8ef013155928717 (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}":
      source          => $source,
      destination     => $destination,
      destinationport => $destinationport,
      originaldest    => $originaldest,
      proto           => $proto,
      order           => 200,
      action          => 'DNAT';
  }
}