summaryrefslogtreecommitdiff
path: root/puppet/modules/site_shorewall/manifests/couchdb/dnat.pp
blob: 85cea9d5dec268d5c24bed7694617505363814d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
define site_shorewall::couchdb::dnat (
  $source,
  $connect,
  $connect_port,
  $accept_port,
  $proto,
  $destinationport )
{


  shorewall::rule {
    "dnat_${name}_${destinationport}":
      source          => $source,
      destination     => "\$FW:127.0.0.1:${accept_port}",
      destinationport => $destinationport,
      originaldest    => $connect,
      proto           => $proto,
      order           => 200,
      action          => 'DNAT';
  }
}