summaryrefslogtreecommitdiff
path: root/puppet/modules/site_shorewall/manifests/obfsproxy.pp
blob: 68fb9b9fdc6eda418800f7a758717ee910e61b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class site_shorewall::obfsproxy {

  include site_shorewall::defaults

  $obfsproxy    = hiera('obfsproxy')
  $scramblesuit = $obfsproxy['scramblesuit']
  $scram_port   = $scramblesuit['port']

  # define macro for incoming services
  file { '/etc/shorewall/macro.leap_obfsproxy':
    content => "PARAM   -       -       tcp    $scram_port ",
    notify  => Service['shorewall'],
    require => Package['shorewall']
  }

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

}