aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/firewall
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystems/firewall')
-rw-r--r--manifests/subsystems/firewall/openvpn.pp29
1 files changed, 29 insertions, 0 deletions
diff --git a/manifests/subsystems/firewall/openvpn.pp b/manifests/subsystems/firewall/openvpn.pp
new file mode 100644
index 0000000..51b31fe
--- /dev/null
+++ b/manifests/subsystems/firewall/openvpn.pp
@@ -0,0 +1,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',
+ }
+}