blob: 324b48447f70c74295f3914efbaec84a43129bf7 (
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
26
|
# configure shorewall for tor
class site_shorewall::tor {
include site_shorewall::defaults
include site_shorewall::ip_forward
$tor_port = '9001'
# define macro for incoming services
file { '/etc/shorewall/macro.leap_tor':
content => "PARAM - - tcp ${tor_port} ",
notify => Service['shorewall'],
require => Package['shorewall']
}
shorewall::rule {
'net2fw-tor':
source => 'net',
destination => '$FW',
action => 'leap_tor(ACCEPT)',
order => 200;
}
include site_shorewall::service::http
}
|