summaryrefslogtreecommitdiff
path: root/puppet/modules/site_shorewall/manifests/tor.pp
blob: f4d5ed92171bee3a34e8438b1e493562ddddfaab (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  => Exec['shorewall_check'],
    require => Package['shorewall']
  }


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

  include site_shorewall::service::http
}