aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/firewall/openvpn.pp
blob: 51b31fe2f570625ed0eb337751d508a02a3952a2 (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
29
class firewall::openvpn {
  shorewall::zone { 'vpn':
    type  => 'ipv4',
    order => '4',
  }

  shorewall::interface { 'tun0':
    zone => 'vpn',
  }

  shorewall::policy { 'loc-vpn':
    sourcezone      => 'loc',
    destinationzone => 'vpn', 
    policy          => 'ACCEPT',
    order           => '1',
  }

  shorewall::policy { 'vpn-loc':
    sourcezone      => 'vpn',
    destinationzone => 'loc', 
    policy          => 'ACCEPT',
    order           => '1',
  }

  shorewall::tunnel { 'openvpn':
    tunnel_type => 'openvpn',
    zone        => 'net',
  }
}