summaryrefslogtreecommitdiff
path: root/manifests/openvpn.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/openvpn.pp')
-rw-r--r--manifests/openvpn.pp39
1 files changed, 4 insertions, 35 deletions
diff --git a/manifests/openvpn.pp b/manifests/openvpn.pp
index 2d3e6d1..a65390c 100644
--- a/manifests/openvpn.pp
+++ b/manifests/openvpn.pp
@@ -1,36 +1,5 @@
-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 => 20,
- }
-
- shorewall::policy { 'vpn-loc':
- sourcezone => 'vpn',
- destinationzone => 'loc',
- policy => 'ACCEPT',
- order => 21,
- }
-
- shorewall::policy { 'fw-vpn':
- sourcezone => '$FW',
- destinationzone => 'vpn',
- policy => 'ACCEPT',
- order => 22,
- }
-
- shorewall::tunnel { 'openvpn':
- tunnel_type => 'openvpnclient',
- zone => 'net',
- }
+class firewall::openvpn(
+ $implementation = lookup('firewall::implementation', undef, undef, 'shorewall'),
+) {
+ class { "firewall::implementations::${implementation}::openvpn": }
}