summaryrefslogtreecommitdiff
path: root/manifests/router/ssh.pp
blob: 5704fbb60623ccc2af9219bebeb1b7df9af1c012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
define firewall::router::ssh(
  $destination,
  $port_orig      = '22',
  $port_dest      = '',
  $zone           = 'loc',
  $originaldest   = $ipaddress,
  $implementation = lookup('firewall::implementation', undef, undef, 'shorewall'),
) {
  if $implementation == 'shorewall' {
    firewall::implementations::shorewall::router::ssh { "${name}":
      destination  => $destination,
      port_orig    => $port_orig,
      port_dest    => $port_dest,
      zone         => $zone,
      originaldest => $originaldest,
    }
  }
}