blob: 758467059ac7cf5ff511a1e19a80d56f6ba05590 (
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 => Service['shorewall'],
require => Package['shorewall']
}
shorewall::rule {
'net2fw-obfs':
source => 'net',
destination => '$FW',
action => 'leap_obfsproxy(ACCEPT)',
order => 200;
}
}
|