summaryrefslogtreecommitdiff
path: root/puppet/modules/site_shorewall/manifests/obfsproxy.pp
blob: 3c82dc40087f44368889911217fac111f6330d1f (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
25
# configure shorewell for obfsproxy
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  => Exec['shorewall_check'],
    require => Package['shorewall']
  }

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

}