summaryrefslogtreecommitdiff
path: root/puppet/modules/site_sshd/manifests/mosh.pp
blob: 49f56ca081587f0f732a14694d81c71e3cdb841a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class site_sshd::mosh ( $ensure = present, $ports = '60000-61000' ) {

  package { 'mosh':
    ensure => $ensure
  }

  file { '/etc/shorewall/macro.mosh':
    ensure  => $ensure,
    content => "PARAM   -       -       udp    ${ports}",
    notify  => Service['shorewall'],
    require => Package['shorewall'];
  }

  shorewall::rule { 'net2fw-mosh':
    ensure      => $ensure,
    source      => 'net',
    destination => '$FW',
    action      => 'mosh(ACCEPT)',
    order       => 200;
  }
}