blob: a72d9dfc33f1b32d612acd6ee4c167213e1d20b4 (
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
27
28
|
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']
}
shorewall::rule {
'net2fw-tor':
source => 'net',
destination => '$FW',
action => 'leap_tor(ACCEPT)',
order => 200;
'net2fw-http':
source => 'net',
destination => '$FW',
action => 'HTTP(ACCEPT)',
order => 200;
}
}
|